[jQuery] Accordion-Like Menu: Setting (and removing) class on active item

[jQuery] Accordion-Like Menu: Setting (and removing) class on active item


Hi
I tried to put together an easy accordion-like effect:
http://www.smartforce.ch/jquery/ShowHide.html
There is one problem: the selected-class will not be removed if all
items are closed (again). The class ".selected" should be removed if
no div is visible. How do I achieve this? "toggleClass" did not help
either.
Thank you very much for your help!
--
View this message in context: http://www.nabble.com/Accordion-Like-Menu%3A-Setting-%28and-removing%29-class-on-active-item-tf4507452s15494.html#a12855015
Sent from the JQuery mailing list archive at Nabble.com.