Question: I'm trying to modify the Bootstrap collapse plugin to allow me to specify whether clicking an accordion (to open) should automatically close the other items in the accordion (so more than one item in the accordion can be open at a time)

I want to create a new data attribute on the accordion, something like `data-collapse-type="auto|manual"`

The bootstrap jQuery plugins are a bit advanced for my skill level. The most relevant part of what I need to mess with seems to be on line 52, `actives.collapse('hide')`. I don't want that to happen if 'data-collapse-type="manual"' is set (omitting the attribute or setting `auto` should keep the default behavior).

I've created a [jsfiddle where I've been experiementing](http://jsfiddle.net/aksKD/).

Can anyone help get me on the right track with this?

Answer: 
I have forked and updated your fiddle.

just go to .show function, I have written also the comments.

<http://jsfiddle.net/2Rnpz/>
since the question didn't refer to a specific version of Bootstrap, here's a bootstrap 4 solution:
remove the `data-parent="#accordion"` from the tags with the `data-toggle="collapse"` attribute. It's the example taken from the Collapse documentation with the `data-parent=#accordion"` bit taken out.

bootply:
<https://www.bootply.com/3wV4WbzBtT#>