I have a jQuery based accordion style navigation that I am trying to modify.
It uses this code:
$('.interior #subContent > ul > li > a.drop').click(function(){
$(this).parent().children('ul').toggle("slow");
return false;
});
I need to be able to keep it open to the section the active page is on. I can highlight the active link with CSS, but could use some good advice for keep it open to the active section.
The navigation is as follows:
<ul>
<li><a href="#" class="drop">Products</a>
<ul>
<li><a href="printing-newproducts.html">New Products</a></li>
<li><a href="printing-inksystems.html">Ink Systems</a></li>
<li><a href="printing-specialtyinks.html">Specialty Inks</a></li>
<li><a href="printing-environmentalinks.html">Environmental Inks</a></li>
<li><a href="printing-whiteplastisolinks.html">White Plastisol Inks</a></li>
<li><a href="printing-plastisolbases.html">Plastisol Bases</a></li>
<li><a href="printing-plastisolinkseries.html">Plastisol Ink Series</a></li>
<li><a href="printing-pvcfreewaterbase.html">Non-PVC Water-Based
System</a></li>
<li><a href="printing-modifersadditives.html">Modifiers & Additives</a></li>
<li><a href="printing-completeproductlisting.html">Complete Product
Listing</a></li>
</ul>
</li>
<li><a href="#" class="drop">Technical Information</a>
<ul>
<li><a href="printing-technicaldatasheets.html">Technical Data Sheets</a></li>
<li><a href="printing-msds.html">MSDS</a></li>
<li><a href="printing-onlinecolorcard.html">Online Color Card</a></li>
<li><a href="printing-mixingsystemsoftware.html">Mixing System Software</a></li>
<li><a href="printing-technicalbulletins.html">Technical Bulletins</a></li>
</ul>
</li>
<li><a href="#" class="drop">Tips & Techniques</a>
<ul>
<li><a href="printing-tradetips.html">Trade Tips</a></li>
<li><a href="printing-galleryoftechniques.html">Gallery of Techniques</a></li>
</ul>
</li>
</ul>
Note: I tried doing this with the jquery ui accordion, but I have a styling conflict with another accordion on the page among other things.
You can see it in action here: It is the sidebar navigation.
Thanks for any assistance.