Can I specify multiple data targets for Twitter Bootstrap collapse?

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>

Leave a Comment