bootstrap header - Collapse jQuery Accordion On Click

1 Answers

Did you mean the effect as in this demo?

Click the selected tab to toggle its content closed/open. To enable this functionality, set the collapsible option to true.

collapsible: true
event href link

I have created an accordion using jQuery which collapses fine when the user clicks a 2nd option but I would also like to have the option to collapse the open pane by clicking again on the header, how should I do this?

Here's a fiddle showing how I've set it up so far:

EDIT: Replaced code examples w/ jsFiddle link