I tried to create a code to execute something at the end of a tablesorter function, however I made a mistake somewhere.
Here’s the original:
$("#myTable").tablesorter({
headers: {
0: {
sorter: false
}
},
widgets: ['zebra']
});
Here’s my addition:
$("#myTable").tablesorter({
headers: {
0: {
sorter: false
}
},
widgets: ['zebra'],
function() {
//execute something
});
});
And here’s my error:
missing : after property id function() {
Thanks for looking over my question everyone!
You should use a sortEnd event, like this sample:
See here for more details: http://tablesorter.com/docs/example-triggers.html