[jQuery] Re: li:gt(...) keeps counting to the next list

2008-06-18 Thread Panos
Ah, got it! Thanks Karl! On Jun 18, 2:27 am, "Karl Rudd" <[EMAIL PROTECTED]> wrote: > The selector "ul li" selects _all_ LI elements in all UL elements, and > puts them in the same "collection". So the collection/array will look > like this: > >   alpha, beta, gamma, delta > > If you want to deal

[jQuery] Re: li:gt(...) keeps counting to the next list

2008-06-17 Thread Karl Rudd
The selector "ul li" selects _all_ LI elements in all UL elements, and puts them in the same "collection". So the collection/array will look like this: alpha, beta, gamma, delta If you want to deal with each UL element separately then use "each()", like so: $("ul").each( function() { //