Vinay Kumar Chella Vinay Kumar Chella - 1 year ago 62
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 Source

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

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