It should be the same.

[code]
$('li:even').addClass('even');
[/code]
I'm using it on divs, so it should work on li's as well.

On Sep 5, 1:02 pm, "Gewton Jhames" <[EMAIL PROTECTED]> wrote:
> Alternate background-color of trs of a table is very easy with jquery, but,
> anyone knows how to alternate these colors of an list? <ul> <li>? I mean,
> alternate the colors of the <li>s of the list
>
> Thanks!

Reply via email to