I have put this code together to create a table, but when I include the zebra widget – I can only sort the columns to descend. I cannot make the ascend or bring them back to normal, however the zebra widget works 😀
Is there anything wrong with my code here? Thanks 🙂
$(document).ready(function() {
$("#myTable").tablesorter({
$("table").tablesorter({
widgets: ['zebra','repeatHeaders']
});
});
Edit: I also tried changing ‘table’ to ‘#myTable’.
Why do you open it twice?
It should be