Turn table rows and buttons into clickable links with jQuery
This simple little script often comes in quite handy when I’m working on a web app. It allow you to add an href attribute to tr, td, or input[type=button] tags to make them clickable links
$(function() {
$("input[type=button][href], tr[href], td[href]").click(function() {
location.href = $(this).attr("href");
});
});






Comments
interesting way to make them click able links. And nicer still because you only have to do it once.
This is a super cool blog!
?????? ???? ????? ????????????, ????????????? ???!