I am using the jquery datatable plugin. I have the following code that sets up alternative backcolor on an html table.
$('#dependenciesTabletr:odd td').addClass('odd');
$('#dependenciesTabletr:even td').addClass('even');
$('#dependenciesTable').dataTable({
"bPaginate": false,
"aaSorting": [[2, "desc"]],
"bJQueryUI": false,
"bSortClasses": false,
"oLanguage": {
"sSearch": "Filter:"
},
"bSort": true
});
The issue is after I sort the alternative backcolor is broken. is there anyway to reset this after each sort ?
Edit the css for this?