Search code examples
javascriptjqueryjquery-uijquery-ui-accordion

jQuery UI Accordion (hiding all by default)


Hello I am using jQuery UI Accodions

By default, the first accordion is shown and other are hidden. I would like to hide all the accordions by default until the user clicks it.

How do I do that ?

Thank You


Solution

  • This code should accomplish this

    $( ".selector" ).accordion({ active: false });