Hi All,

I've got a little problem.  I have a table in which some rows are
shown and hidden based on some selections.

What I am trying to do is add the row-styping to this table, but what
happens is something doesn't work right with the :even selector, and I
get some rows next to each other of the same color.

Does anyone know how to write a selector that would return all even
visible rows?

I tried doing this but it doesn't work:
        function rowColors(){
                $('table.basic tbody tr').removeClass('even');
                $('table.basic tbody tr:even:visible').addClass('even');
        }

Reply via email to