I have multiple anchor tag in a page. I want to click all the tag from JQuery to open each link in a new tab. But it is working only for the first element. Can anybody please help on this? My attempt is below:
$('.tbl a').each(function () {
var url = $(this).attr("href");
window.open(url, '_blank');
})
NOTE: if I set background color in each it works well. Than why not new Tab ?!!!