I have an HTML table with a link in the first column. I want to allow the user to click anywhere in the row to activate that link. At the same time, I would like to preser
you need to remove the < tbody > tag
and just use the 'href' attribute to get the link destination and dont to select the anchor < a > tag too because thats contains the href attribute.
$("table#row_link tbody tr a").click(function () {
window.location = $(this).attr("href");
});
or simply make the link open a new tab.
i hope that helps you.