:odd and :even work fine on divs. I whipped up a demo. http://commadot.com/jquery/even.php
Glen On 10/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Hi, > > I have a list of DIVs with class 'myclass', now I like to add > different classes to it depending on odd or even, since it's not a > table, I can't use the ':odd' and ':even' selector, any other way to > do this? Thanks. > A.C. > > <div class='myclass'></div> > <div class='myclass'></div> > <div class='myclass'></div> > <div class='myclass'></div> > <div class='myclass'></div> > >