You can simply add all the ids separated by commas in data-target
:
<button type="button" data-toggle="collapse" data-target="#demo,#demo1,#demo2">
Hide them all
</button>
More Related Contents:
- bootstrap alpha or stable?
- Bootstrap 3 Glyphicons are not working
- what are the .map files used for in Bootstrap 3.x?
- Bootstrap balancing bullet columns
- bootstrap 3 – how do I place the brand in the center of the navbar?
- For loop inside foreach PHP [duplicate]
- Five equal columns in twitter bootstrap
- Why did Bootstrap 3 switch to box-sizing: border-box?
- Bootstrap 3 Collapse show state with Chevron icon
- Centering brand logo in Bootstrap Navbar
- Bootstrap 3 unable to display glyphicon properly
- Change the order of col-*-12 columns in Bootstrap using push/pull
- 7 equal columns in bootstrap
- Stacked Tabs in Bootstrap 3
- Changing the width of Bootstrap popover
- How to change btn color in Bootstrap
- Where is the typeahead JavaScript module in Bootstrap 3 RC 1?
- BootStrap3 keep the dropdown menu open after click on the item
- Should I use Bootstrap from CDN or make a copy on my server?
- Make column fixed position in bootstrap
- Bootstrap 3+Rails 4 – Certain Glyphicons not working
- Bootstrap 3: Push/pull columns only on smaller screen sizes
- What’s the tabindex=”-1″ in bootstrap for
- How to add a search box with icon to the navbar in Bootstrap 3?
- CSS issue on Twitter Typeahead with Bootstrap 3
- Implementing jQuery DatePicker in Bootstrap modal
- How to use Bootstrap in an Angular project?
- Binding to Collapse event in Twitter Bootstrap 3
- Bootstrap modal hide is not working
- Custom CSS being overridden by Bootstrap CSS