tablesorter
tablesorter copied to clipboard
Table sorter adds rows when sorting after post
I have a web app that uses table sorter. If I perform search #1 (filling a form and posting to refill rows w/ ajax) and then perform search #2 (a new search, posting for new rows w/ ajax) and then click a column header to sort the rows -- then after sorting, some of the rows from search #1 re appear in the table! I think javascript has stored these rows some how and refills them after search.
Trigger an update immediately after each ajax load. Put this in your success or complete function: $("#MyTable").trigger("update");