jQuery accordion menu - keep accordion menu open to the page I am on
Posted
by MelissaTA
on Stack Overflow
See other posts from Stack Overflow
or by MelissaTA
Published on 2009-10-21T19:10:19Z
Indexed on
2010/04/23
23:23 UTC
Read the original article
Hit count: 780
Hi everyone,
I hope you can help. I'm very new to jQuery and am working on a five- or six-level accordion menu for my side navigation. I got the majority of the code I have so far from Dane Peterson @ daneomatic.com (thanks Dane!). But, I'm stuck on one thing:
I'd like to have my accordion/tree work like this:
When I navigate down into, say, level three, and click on the link to open the page linked to that level, how do I indicate once the level three page loads that I'm on that page? Also, how do I keep the tree open to that level when I load the page?
I guess what I'm asking is: is there a way for the accordion/tree to automatically update to show what page you're at, and have the tree open to that level?
Thanks in advance!
© Stack Overflow or respective owner