I've just started using Marco's accordion widget (
http://www.i-marco.nl/weblog/yui-accordion/) and have a question...
I have two different accordion sets - accordion1 and accordion2. Both are configured identically:
accordion1 = new YAHOO.widget.AccordionView('accordion01', {collapsible: true, width:'100%', animationSpeed: '0.3', animate: true, effect: YAHOO.util.Easing.easeBothStrong});
accordion2 = new YAHOO.widget.AccordionView('accordion02', {collapsible: true, width:'100%', animationSpeed: '0.3', animate: true, effect: YAHOO.util.Easing.easeBothStrong});
Though I've got 2 accordions, I only want a max of one accordion panel open at a time, so if a panel is open in accordion1 and I click to expand a panel in accordion2, I want accordion1 to collapse first.
Is there an easy way to accomplish that?
Thanks