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? -

html - Unable to style the color of bullets in a list -

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