troubleshooting Question

Need help customizing jQuery Tools accordion onclick event

Avatar of Jules Webb
Jules WebbFlag for United States of America asked on
JavaScriptjQuery
63 Comments1 Solution2033 ViewsLast Modified:
Hello

I'm using jQuery Tools to implement an accordion (see link below) Everything works fine, but I wanted to see if it was possible to close the current pane by clicking on it's own heading.  Currently you can click on a new heading and the new pane opens and the previous pane closes.

I'm fairly sure in order to do what I want a new onclick event would need remove the class "current" and close the pane, unfortunately I am not very well versed in jQuery or javascript and need some help. Any takers?

http://flowplayer.org/tools/demos/tabs/accordion.html

Cheers!
Jules
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 63 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 63 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros