I am using the jQuery tablesorter (http://tablesorter.com).
After being applied to a table by $('#myTable').tablesorter()
, how can I remove it again from the table?
I am using the jQuery tablesorter (http://tablesorter.com).
After being applied to a table by $('#myTable').tablesorter()
, how can I remove it again from the table?
Latest version of table sorter library provides Destroy method
From version 2.16 destroy() method has been added in table sorter library, use this method to remove tablesorter from the table.
There isn't a built-in function to do this, but you could remove the class names and event bindings to stop its functioning... try something like this:
The above won't work if you have the pager plugin running.
use the function given below onclick event of remove shorting element
u may increase the number of headers according the number of columns of table.
tablesorter2.0
or if you just in need to update all after appending new thead :
-> http://mottie.github.io/tablesorter/docs/index.html