I have a table of 5 rows and 3 columns. The first column has a hyperlink in it with a target=_new. I want things such that when I click any column in the same row, it fires that hyperlink and a new window opens up via the target=_new. Is this possible in Javascript or jQuery? I found I was able to access the href, at least, by doing this:
$('#search-results TD').click(function() {
var s = $(this).siblings(':first-child').contents().attr('href');
alert(s);
});
Note that simply adding hyperlinks on the other table columns besides col 1 is not desirable because I want a click in that row (even not on top of the hyperlink) to fire that hyperlink.
Note also that window.open might be disabled in some browsers, but target=_new gets right on through.