I using Daniel Stocks jQuery-Collapse with cookies, which works great.
https://github.com/danielstocks/jQuery-Collapse
Hi, does anyone know how I can make one of the headers a link? So when clicked it links to another page also containing the menu, and when this page is loaded, the clicked menu is expanded showing the sub items.
In the example below, I need fruits to link to another page and to be expanded at this page:
<div class="demo">
<h3><a href="default2.html">Fruits</a></h3>
<ul>
<li>Apple</li>
<li>Pear</li>
<li>Orange</li>
</ul>
<h3>Vegetables</h3>
<ul>
<li>Carrot</li>
<li>Tomato</li>
<li>Squash</li>
</ul>
<h3>Colors</h3>
<ul>
<li>Green</li>
<li><a href="http://en.wikipedia.org/wiki/Yellow">Yellow</a></li>
<li><a href="http://en.wikipedia.org/wiki/Orange_(colour)">Orange</a></li>
</ul>
</div>
Any help would be appreciated :-)