Ogum
Ogum

Reputation: 379

jquery ui accordion customization

I'm trying to customize a jquery accordion menu. For tests I used an example into this page ( sortable accordion)

I would make sure that when the page is loaded, the menu will remain closed. At the bottom of page, there are only these settings:

//jquery accordion
            $( "#accordion" ).accordion({
                collapsible: true ,
                heightStyle: "content",
                animate: 250,
                header: ".accordion-header"
            }).sortable({
                axis: "y",
                handle: ".accordion-header",
                stop: function( event, ui ) {
                    // IE doesn't register the blur when sorting
                    // so trigger focusout handlers to remove .ui-state-focus
                    ui.item.children( ".accordion-header" ).triggerHandler( "focusout" );
                }
            });

How can I do? Thanks

Upvotes: 0

Views: 29

Answers (1)

Avi L
Avi L

Reputation: 1708

In your options specify:

{
  ...
  active: false,
  collapsible: true,
  ...
}

See documentation for active.

Upvotes: 1

Related Questions