Ken,

Tablesorter has a zebra capability built right in through the zebra 
widget - see the docs for the tablesorter plugin.  It will automatically 
redo the striping after each sort.  You can change your code to:

$(document).ready(function() {
  $("table#sorttable").tablesorter({widgets: ['zebra']});
)};

HTH,
Carl

Ken wrote:
> I have the following in my $(document).ready:
>
> $(document).ready(function() {
>   $(".zebra tr:not([th]):even").addClass("even");
>   $(".zebra tr:not([th]):odd").addClass("odd");
>   $("table#sorttable").tablesorter();
> )};
>
> This allows my table to sort columns by clicking on the column headers
> and works great.  What I need to be able to do, is have the zebra
> striping happen after each table sort.
>
> Is there a way to set this up?
>
> Thanks, Ken
>
>
>   

Reply via email to