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
Ensure that the selected element (the th/tr) exists when the page is loaded initially. The new .on won't work if this selector is added later to the DOM.
Try
$('body').on('click', 'thesSelectorForYourTriggerElement', function(){ //callback });