Yes, parents() returns all parents that match the given selector. closest()
will match the nearest parent that matches the selector.
-Hector


On Fri, Apr 3, 2009 at 1:45 AM, Brian Gallagher <sinkingf...@gmail.com>wrote:

> Sorry wasn't at the computer yesterday, that worked a treat, thanks.
> So parents() goes further that the direct parent?
>
> -Brian
>
>
>
> On Thu, Apr 2, 2009 at 10:18 PM, Ricardo <ricardob...@gmail.com> wrote:
>
>> $(this).parents('div.togglecontainer:first').find
>> ('div.toggletarget').slideToggle();
>>
>
>

Reply via email to