Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to automatically open the first collapsibleset set(accordion)?

I have a collapsible set and when the page is loaded, I wanna open the first collapsible set automatically.

How I do that in jquerymobile?

like image 631
Michael Unterthurner Avatar asked Dec 15 '22 09:12

Michael Unterthurner


1 Answers

From the documentation You can use data-collapsed=false

<div data-role="collapsible-set">

    <div data-role="collapsible" data-collapsed="false">
    <h3>Section 1</h3>
    <p>I'm the collapsible set content for section 1.</p>
    </div>

    <div data-role="collapsible">
    <h3>Section 2</h3>
    <p>I'm the collapsible set content for section 2.</p>
    </div>
</div>
like image 159
karthikr Avatar answered Feb 09 '23 00:02

karthikr