There is a link

<a id="67" href="http://example.com">ссылка</a>

I try to go through it by calling trigger with passing the identifier by typing it from the keyboard.

$("#" + pressed).trigger("click");

but does not work.

Here found

It should be noted that the triggering of an event by the trigger () method does not completely repeat the event that occurred for natural reasons. For example, calling the "click" event in relation to a link will not lead to a click on it.

Tell me, how can I start the transition by reference?

    1 answer 1

     document.location.href = $("#" + pressed).attr('href');