the Forum

TableSorter JQuery ODD EVEN fix

Posted on May 21, 2013 by Michael Rosario
Total Posts: 33  |  Join date: 03-12-11

$("table").tablesorter()
 .
bind('sortEnd', function(){
     
$("table tr:even").removeClass("odd");
     $(
"table tr:odd").removeClass("even");
     $(
'table tr:even').addClass("even");
  $(
'table tr:odd').addClass("odd");
      
});

  $(
'table tr:even').addClass("even");
  $(
'table tr:odd').addClass("odd"); 

Tags: There are no tags for this entry.

There are no answers yet.  Add yours below.

add your answers here
comments powered by Disqus