jQuery UI Accordion 1.6: collapse & expand

jQuery UI Accordion 1.6: collapse & expand

Hi folks

I'm using jQuery UI Accordion 1.6.
I incorporated it into the DotNetNuke platform.
when the page loads the first parent with children is open by default, I want it to modify so it is collapsed.

this is the segment of code I tried various tricks with.



  1. $.extend($.ui.accordion, {
  2.     defaults: {
  3.         selectedClass: "selected",
  4.         alwaysOpen: false,
  5.         animated: 'easeslide',    //easeslide bounceslide false
  6.         event: "click",
  7.         header: ".head",
  8.         autoheight: false,
  9.         running: 0,
  10.        
  11.         navigationFilter: function() {
  12.             return this.href.toLowerCase() == location.href.toLowerCase();
  13.         }



If the question isn't clear please indicate so and I will elaborate more.

Thanks in advance