A row in a table where each first cell contains a link needs to be clicked and open a url.
-
try
$('table tr').click(function() {
var href = $(this).find("a").attr("href");
if(href) {
window.location = href;
}
});
- 热议问题