That worked!  Perfect! Thanks!

I did get an idiom to work but it was returning too many recursive
elements:

var $v = $("[EMAIL PROTECTED] :first-child").parents();
$v.show();

I knew there had to be something better. I did try parent and parents
but I guess I didn't understand that .parents(filter) will continue to
propapate upward!  That's perfect!

Thanks again

--
HLS


On Sep 7, 4:10 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
> How about this? (in the open function)
> $(this).parents("ul").show();
>
> Glen
>
> On 9/7/07, Pops <[EMAIL PROTECTED]> wrote:
>
>
>
> > I have  a tree list and when I toggle a deep item to expand/show, I
> > want all its parents to expand as well.   What selector or method will
> > give me this?
>
> > I guess this is expanding the sub-tree which I can do natively, but
> > would like to do it via jQuery.
>
> > TIA
>
> > --
> > HLS

Reply via email to