/ Published in: jQuery

This code was use for openning a pdf file that was in a table cell. This link was the only link/button for each rows. Using this, you can click anywhere on each rows to open it's link page.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$("tr.TrClassName").click(function(){ newURL = $(this).children("td.tdClassName").children("a").attr("href"); //window.open.location.href = newURL; // Choose one: Open in the same page window.open(newURL); // Choose one: Open in a new page return false; // Stops the click that is over the link to open 2 different copies of the same linked page. });
Comments
