I have a problem with the tablesorter plugin and the zebra widget, which enable different styles for even/odd rows.
My page starts with an empty table; then, the user compiles a form, and then my table is loaded...so the problem is: on initial load (which also sort a column) the zebra striping doesn't work; my rows have all the same background-color.. but when the user starts sorting columns or going to other page results (with the "pager" addon on the same table), the zebra widget works.
What is wrong?
Jquery version: 1.9.0
tablesorter version: 2.7.12
Here is my javascript code:
$("table").tablesorter({
widthFixed: true,
sortList: [[3,0]],
widgets: ["zebra"],
widgetOptions:{
zebra: ["even","odd"]
}
});
Thanks in advance!