danielstocks / jQuery-Collapse

A lightweight (~1kb) jQuery plugin that enables expanding and collapsing content
http://webcloud.se/jQuery-Collapse/
MIT License
679 stars 153 forks source link

how to open all accordian on button click #84

Closed myselfgaurav closed 7 years ago

myselfgaurav commented 9 years ago

how to open all accordian on button click

danielstocks commented 7 years ago

https://github.com/danielstocks/jQuery-Collapse#triggering-events

outline4 commented 4 years ago

Do I need to initialize the plugin with js in order to get this working?

danielstocks commented 4 years ago

No it should work as long as the plugin has loaded.

// Opens all section when clicking <button id="my-button>
$("#my-buttton").click(function() {
  $("#collapsible-container").trigger("open")
});