I know that .live() is now deprecated but I cannot seem to change it and keep the functionality.
.live()
I just have a quick question about the
I somehow guess that you are adding tr elements into your table, not th.
tr
th
$('table').on("click", "tr th", function(){});