Vinay Kumar Chella Vinay Kumar Chella - 1 month ago 6
jQuery Question

Collapse all sections in accordian on page load in jQuery Accordian

I am using JQuery Accordian, I want to hide all the sections on page load. Only when user clicks on header that section should open. Can any one help me out..

Answer

Use this in your document ready function when initialising the accordion:

$("#someid").accordion({collapsible : true, active : 'none'});