How to "trigger" a click event on a specific anchor element with Javascript? preferably with jQuery
- by Alex
Hello there,
What I want to do is issue a click event, preferably with jQuery, on an anchor element, causing the browser to follow that link. I know that my anchor selectors are correct, as they are returning 1 from .length.
Here's what I've tried:
$('#awesomeLink').click();
But it won't follow the link.
How am I doing it wrong?
Thanks!!