ProLoser/ElegantAccordion — Issue #7: Show on click, then Hide all and show on click?
Author: wdcsam
Created: 2011-11-14 21:47:51+00:00
State: open

Hi

I've tried to get this working on a click event so it could hopefully be used on mobile devices. Toggle works to a degree but you have to click it again to hide it. The beauty of this is that the second hover state, what I would call the 'rollout' hides the active pane.

I am new to jquery and am reading through the sitepoint book at present and am really getting to grips with it - but this modification just seems a step to far for my simple mind!

How could the code be modified to work on a click??

Any tips or pointers most welcome

Cheers