Bootstrap Collapse first item collapse


Topic: Bootstrap Collapse first item collapse

carolyn2018 asked 7 years ago

I have bootstrap 3  - collapse plugin on. On page load, the first item (child) is showing as open. The other items in the category are shown as collapsed.  I would like all items, including first item to be closed on page load. Please assist.

Mikołaj Smoleński staff answered 7 years ago

Hello, You probably have the following code in Your project:

<div id="collapseOne" class="collapse show" role="tabpanel" aria-labelledby="headingOne" data-parent="#accordionEx" > If You remove 'show' class the collapse item will be hidden on page load.

Regards

carolyn2018 commented 7 years ago

Thank you for your quick response. I am wondering what file this code would be found in please.

carolyn2018 commented 7 years ago

i have looked for this code everywhere in the plugin files but can't find it unfortunately.

Mikołaj Smoleński staff commented 7 years ago

Which version of MDB do You use? jQuery, React, Vue or Angular?

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: Other
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No