Here are a couple of tricks to remember when using jQuery’s tablesorter plugin with dynamic tables. These are tables that the user can add or delete from.
-
If the table begins empty (with no rows in
<tbody>
), you can’t specify a default sort.If there are no rows in the
<tbody>
section when the page is first loaded, the sortList command will crash with a “parsers is undefined” error.