Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 365
Atif Avatar asked Dec 09 '22 13:12

Atif


1 Answers

This code should accomplish this

$( ".selector" ).accordion({ active: false });
like image 166
Henrik P. Hessel Avatar answered Jan 04 '23 08:01

Henrik P. Hessel