PDA

View Full Version : Accordion Menu Script - Close on action



stephenconnolly
05-07-2011, 10:52 AM
Hello,

1) Script Title: Accordion Menu Script

2) Script URL: http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-glossy.htm

3) Describe problem:

I'm doing a bit of custom work for a client and I'm using the Accordion Menu Script.

When the user clicks on the main heading the submenu appears, no problem here, all working as it should. I have a <select> box in the submenu, so when the user selects an option from the drop down list I want the submenu to close automatically.

Any ideas how I can do this ?

Regards,
Stephen

stephenconnolly
05-07-2011, 11:12 AM
I just solved it, for the benefit of others have a look at:

http://www.dynamicdrive.com/dynamicindex17/ddaccordion_suppliment.htm

in particular the ddaccordion.toggleone('header_class', index) method.

Regards,
Stephen