Hello - You should be able to achieve your desired result by doing: $("p a:first").hide();
Hope that helps. --John On 8/18/06, Julius Lucks <[EMAIL PROTECTED]> wrote: > Hello, > > I would like to use .find, but only for the first element. If I have > > <p> > <a> link 1 </a> > <a> link 2 </a> > </p> > > 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 > > -- > ----------------------------------------------------- > http://openwetware.org/wiki/User:Lucks > ----------------------------------------------------- > _______________________________________________ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > > > -- John Resig http://ejohn.org/ [EMAIL PROTECTED] _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/