Hello - I am having trouble getting this to work. I would like to trigger the second link. If anyone can help that would be much appreciated.
$(".links").click(function () {
alert($(this));
})
function someFunction(){
$(".links").trigger('click');
}
someFunction();
...
<a href="1.html" class="links">One</a>
<a href="2.html" class="links">Two</a>
<a href="3.html" class="links">Three</a>