javascript - Can't trigger a click event on "a" element -


i’m trying trigger click event on <a> element, nothing happens. want link included on href open new tab.

i've used:

$("#tables a").eq(0).click(); 

anybody knows why not working?

click() trigger event, not click link. closest can window.open:

window.open($('#tables a').get(0).href); 

or, open in same page:

window.location.href = $('#tables a').get(0).href; 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -