I have a requirement to display content with an accordion or without. Is there a way to easily add and remove the accordion behavior? In other words, can I revert the styles and behaviors applied to my divs to a state before they were “accordionized”?
Share
Yes, use the destroy method.
http://api.jqueryui.com/accordion/#method-destroy
most if not all official jQuery UI widgets have this method.