hidden row causing issue with tablesorter zebra striping

Posted by Harvengure on Stack Overflow See other posts from Stack Overflow or by Harvengure
Published on 2010-04-21T07:20:02Z Indexed on 2010/04/21 7:23 UTC
Read the original article Hit count: 407

Filed under:
|
|
|
|

Sorry if this has already been solved elsewhere but my searches have been able to turn up nothing and my attempts at solving the issue myself have made even less progress. :P

Put quite simply I have a table that is using the jquery tablesorter and it's zebra widget. In this table there is a hidden column. I've so far been able to make it so that when a tr contains specific text (I was aiming for * but was seemingly unable to get \* to work for whatever reason...and I suspect my selector is perhaps not specific enough) the containing row is set not to display by ".hide()".

The problem I am having though is when the row is hidden, tablesorter does exactly what it should do and stripes all the rows their specific colours based on their odd and even values. Of course .remove doesn't do the trick either as the table still sees some funny striping.

Any thoughts on how to make it so that when a row is hidden, the striping compensates?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about tablesorter