Thanks,
But that was really what I was looking for see:
http://www.ehs.sfu.ca/AtoZ/indexUL_all.htm (click on all)
multiple lists with the same .stripMe class just to add strips. But
$(.stripMe li:even).addClass('alt'); would not always start with a non
striped item, hence the use of each or nth child(even).
Just trying to find my way around jQuery and different (faster if possible)
ways to do things
Thanks
Brice Burgess wrote:
>
> On 2/15/07, *Angelo Sozzi* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
> wrote:
>>
>>
>> Just a minor (nice to know) question:
>> When stripping multiple tables or lists on a single page
>> $(.stripMe li:even).addClass('alt');
>> won't work as it itterates over all the li element regardless of
>> the table
>> they are in. So I went for:
>>
>
> You can limit the "scope" to a particular table via;
>
> $('.stripMe li:even',document.getElementByID('table')).addClass('alt');
> for instance.
>
> ~ Brice
>
>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>
--
View this message in context:
http://www.nabble.com/Table-striping%2C-speed-question-tf3235049.html#a8994482
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/