http://mayakaimal.com/mayakaimal2/prod-rs-tk.html
OK. There are 2 accordions on this page. I want to work on the leftnav.
There are three sections: Refrigerated Sauces, Shelf Stable and Cookbooks. I would like the panel for the section you're in to stay open when you are on those pages.
I have changed defaultPanel: -1 to defaultPanel: 2.
<script type="text/javascript">
var Accordion1 = new Spry.Widget.Accordion("Accordion1", { useFixedPanelHeights: false, defaultPanel: -1 });
</script>
Didn't work. Problem is, I don't know where the panels are id' ed. I don't know javascript at all.
Help?
I was using the wrong defaultPanel number. Works now.
<script type="text/javascript">
var Accordion1 = new Spry.Widget.Accordion("Accordion1", { useFixedPanelHeights: false, defaultPanel: 0 });
</script>