When a parent link is clicked it reveals the sub-list. What I would like to do is hide currently visible lists when another is revealed. I've tried to use .siblings but it dunt werk (or, at least, I can't make it happen!)

Help!

Paul_Wilkins
—
2011-03-06T22:23:05Z —
#2

The way to do that is to hide all of the lists, then to show the clicked one, and each of its parents.

rickydazla
—
2011-03-07T02:53:48Z —
#3

paul_wilkins said:

The way to do that is to hide all of the lists, then to show the clicked one, and each of its parents.

I have hidden all of the lists first. The script then shows the one proceeding the clicked link, which is fine. What I want to do is hide any others that are already open -- at the moment you can expand the entire tree, which I don't want...

Paul_Wilkins
—
2011-03-07T02:56:31Z —
#4

rickydazla said:

I have hidden all of the lists first. The script then shows the one proceeding the clicked link, which is fine. What I want to do is hide any others that are already open -- at the moment you can expand the entire tree, which I don't want...

The way to hide any that are already open is to hide all of them, and then to open up only the ones that you need to be opened.

rickydazla
—
2011-03-07T14:24:09Z —
#5

paul_wilkins said:

The way to hide any that are already open is to hide all of them, and then to open up only the ones that you need to be opened.

That's exactly what you said before. Except I get it this time. Excuse my slowness!