After the sort table, the color of the alternate row in the table row does not work


i am using a table with alternate row color and the same table has sorting functionality with jquery.tablesorter.js. as follow.

css can be applied for alternative row like.


sorting can be done by

             function sortTable(tableID)

First time alternative row color works fine.

But When I sort the records the format has been changed. and alternative row color is not working.

Any help will be appreciated.

Use the zebra widget:

$("table").tablesorter({widgets: ['zebra']})