Hi Ken, luckily for us the brilliant Christian Bach created a widget
system for Tablesorter so when you initialize your table use this
instead $("table#sorttable").tablesorter({widgets:["zebra"]}); this
will automatically apply a class of odd and even so you just have to
style it!  There are some other cool things that you can do like
disable columns and whatnot just look in the documentation ^_^.
http://tablesorter.com/docs/#Examples

Best of luck!

On Jun 18, 7:34 am, Ken <[EMAIL PROTECTED]> 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