I am using JQuery Accordion, I want to hide all the sections on page load. Only when user clicks on header that section should open.
Use this in your document ready function when initialising the accordion:
$("#someid").accordion({collapsible : true, active : 'none'});
active : 'none' is an invalid value, it may appear to work on the surface, but will break other aspects of the accordion widget. Use this instead:
$("#someid").accordion({collapsible : true, active : false});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With