"I was trying to fix that with Zebra widget but gave up." Well, this tablesorter plugin most definitely does work, both on load and client sorting....
i'd suggest being more descriptive on why you gave up (explanation? example code? question to clarify what it does?), instead of trying to recreate code that already works On Dec 17, 10:41 pm, adeveloper <msosn...@gmail.com> wrote: > My table has alternating row coloring. It get's messed up after > sorting (eg, instead of odd, even, odd I get something like even, > even, odd, even, even...etc) I was trying to fix that with Zebra > widget but gave up. > > All I need to do is to call this simple function > tohttp://www.sitepoint.com/article/background-colors-javascript/, but I > am not sure where. I tried putting into: > <body onload=".... > > It worked, however, only when document itself was reloaded, not after > client-side sorting with tablesorter. > > How to call this function from jQuery? Is it possible to add it to $ > (document).ready(function() call?