How do I keep jQuery UI Accordion collapsed by default?

后端 未结 1 1408
一个人的身影
一个人的身影 2020-12-02 08:30

I am working with jQuery UI Accordion and it works great, but I would like to have the accordion stay closed unless it I click on it.

I am using this code right now,

相关标签:
1条回答
  • 2020-12-02 08:43

    Add the active: false option (documentation)..

    $("#accordion").accordion({ header: "h3", collapsible: true, active: false });
    
    0 讨论(0)
提交回复
热议问题