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 ?