[jQuery] Re: alternate color row starting from a point

2009-03-01 Thread Magritte
            color = 'red'; > >         } else if (color === 'red') { > >             $(this).css({'background-color': 'red'}); > >             color = ''; > >         } else { > >             color = 'red'; >

[jQuery] Re: alternate color row starting from a point

2009-02-27 Thread Magritte
Ok, it work, but I another trouble. the code now become: $('tr:not(.className):odd').css({'background':'red'}); because I would like to color row alternatively. The problem is that I would like that the alternativy start alway with red.(first '' after every '' red, then 'white', then red,)

[jQuery] alternate color row starting from a point

2009-02-27 Thread Magritte
Hi every body, i have a table like this (simplify): I would like to color the blackground of the without class