The plugin works fine when I have only 1 table per page.
But with two, I get an error:
Uncaught TypeError: Unable to set 'count' value from undefined
This is due to the option sortListset below. I set it to sort in the 4th column, and aux_tableonly 3 columns displayed . But it works, but main_tablenot. How do I get them to work, or just a second, more important main_table?
Both tables are classes tablesorter, and they have different identifiers ( main_tableand aux_table).
The first table on the page works, and the second does not. Here is the JS from the tag <head>:
$(document).ready(function() {
$("table").tablesorter({
sortList: [[3,1]]
});
});
source
share