You can use a delegate to improve performance, which will attach the click event to the root container of the rows ie table
$(document).ready(function(){ $("tableSelector").delegate("tr.rows", "click", function(){ alert("Click!"); }); });
Shankarsangoli
source share