> $('.myClass').find(':first-child')
> use this instead:
> $('.myClass').children(':first')

The difference between these two selectors is that the first will
match all *descendant* elements which are the first child of their
parent. That could be quite a few elements.

Whereas the second one will only match the first direct child element
of the parent - this will only ever be zero or one element.

--John

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to