Clickable rows in html tables using jquery


I posted the code from an answer in stackoverflow (link below). The reason I chose this among other ways because it is the simplest and cleanest way to do it (according to me :D)


$('tr').click(function() {
    // row was clicked
});
This doesn't work for me
$('.table > tr').click(function() {
    // row was clicked
});




resource:
http://stackoverflow.com/questions/10002704/how-do-i-make-bootstrap-table-rows-clickable

Comments

Popular Posts