What is the best way to make a row of an HTML table a link? I currently am using jquery to zebra stripe the rows and also to highlight the onmouseover/off selected row, so
$(document).ready(function(){ $("tr").click(function(){ /* personally I would throw a url attribute () on the tr and pull it off on click */ window.location = $(this).attr("url"); }); }); 0 讨论(0) 查看其它6个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题