Linkable Header and Persistant State for Accordion
Hi,
I'm trying to implement the accordion navigation menu for one of my
sites and have a quick question on how to properly set up the call...I
went through the documentation and I think that I'm obviously missing
something...
I want the header to be a link as well as any content within the div
to contain links. So something like...
Guitars (links to guitars.html)
- Electric (links to guitarsElectric.html)
- Accoustic (links to guitarsAccoustic.html)
Drums (drums.html)
- big (bigdrums.html
- small (smalldrums.html
Then, when I click on a header I want the header to expand and the
browser to link to the coresponding page. Once the new page renders
the clicked on header should already be expanded.
I know I can set the active menu item like this...but I don't know how
to make this choice persistant between page loads
$("#category-menu").accordion({ header: "h3", active: 2 });
Any advice?
Thanks!
Geoff