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
Post a Comment