I am using the jQuery tableSorter plugin on a page.
Unfortunatley, the table that is being sorted is dynamically modified, and when I sort after adding an element, t
The $(table).trigger("update");
throws error
Uncaught TypeError: Cannot read property 'rows' of undefined
So, there is a jquery function .ajaxStop()
where tablesorter()
is called. Do not call tablesorter in .ready()
jQuery(document).ajaxStop(function(){
jQuery("#table_name").tablesorter();
})
which did the job