[jQuery] Re: Is $(this) the first child?

2008-06-11 Thread warren.wessels
Thanks, these are great, too! -w On Jun 11, 8:58 am, "a.roland" <[EMAIL PROTECTED]> wrote: > There are several methods ..just to mention three: > > == 1 == > $('ul li:first ~ li').mouseover(function(){ > $(this).addClass('red'); > }); > > == 2 == > $('ul l

[jQuery] Re: Is $(this) the first child?

2008-06-11 Thread warren.wessels
Ariel Fleslerhttp://flesler.blogspot.com > > On 11 jun, 11:58, "warren.wessels" <[EMAIL PROTECTED]> wrote: > > > Hello, > > > I've just started using JQuery, and had a quick question that I don't > > seem to be able to answer by reading the 1.

[jQuery] Is $(this) the first child?

2008-06-11 Thread warren.wessels
Hello, I've just started using JQuery, and had a quick question that I don't seem to be able to answer by reading the 1.2 API documentation. I have a DOM snippet like: something another thing a third a final thing And on mouseover, using the $("li").mouseover event, I am adding a class t