JQuery UI Accordion (hiding everyone by default)

Hello, I am using jQuery UI Accodions.

By default, the first accordion is displayed, while others are hidden. I would like to hide all the accordions by default until the user clicks on it.

How to do it?

thank

+3
source share
3 answers

This code should execute this

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

This is updated code to execute the corresponding.

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

+6
source

Source: https://habr.com/ru/post/1765501/


All Articles