[jQuery] Re: Accessing an element's child

2008-10-22 Thread Adam Schmitz
That's perfect. Thanks! I read the docs from that URL but I could only find the snippet that was formed like $("parent > child"). I must have accidentally skipped over the forms. Thanks Richardo On Wed, Oct 22, 2008 at 4:08 PM, ricardobeat <[EMAIL PROTECTED]> wrote: > > Three different ways:

[jQuery] Re: Accessing an element's child

2008-10-22 Thread ricardobeat
Three different ways: 1. children() lookup $(this).children('div') 2. context lookup $('> div',this) 3. find() $(this).find('> div') // is basically the same as nÂș2 Are you reading the docs at docs.jquery.com? They're very clear and have examples for every selector. cheers, - ricardo On Oct