views:

42

answers:

2

Hello guys,

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..

+1  A: 

Just, for example, do this:

$(document).ready(function() {
$('.classOfTheElements').hide('fast');
});

It's easy! ;-)

joanballester
+4  A: 

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

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