[jQuery] Find first element (child)
Hello,
I would like to use .find, but only for the first element of the results. If I have
<a> link 1 </a>
<a> link 2 </a>
and I do
$("p").find("a").hide();
this hides both links. I would only like to hide the first. Can I do this with find, or can I use $("p").children()?
Cheers,
Julius Lucks<br clear="all">
--
-----------------------------------------------------
<a href="http://openwetware.org/wiki/User:Lucks">http://openwetware.org/wiki/User:Lucks</a>
-----------------------------------------------------
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/