[jQuery] Re: .parent().parent() ... better way to get parents' parent

2008-12-12 Thread Joel Taylor
Ok - just wanted to make sure. Thanks! On Dec 11, 11:36 am, ricardobeat wrote: > Nope. > > You can use parents() but that will give you *all* parents up to the > unless you filter() or stop it some other way (you can pass a > selector too): > > >     >         >     > > > $('#cat').parents('.

[jQuery] Re: .parent().parent() ... better way to get parents' parent

2008-12-11 Thread ricardobeat
Nope. You can use parents() but that will give you *all* parents up to the unless you filter() or stop it some other way (you can pass a selector too): $('#cat').parents('.wanted') - ricardo On Dec 11, 2:01 am, Joel Taylor <[EMAIL PROTECTED]> wrote: > Is there a better way