I'm trying to modify the Bootstrap collapse plugin so that I can specify whether to automatically click on the accordion (to open) to automatically close other elements in the accordion (so that several elements in the accordion can be opened at the same time)
I want to create a new data attribute on the accordion, something like data-collapse-type="auto|manual"
The jQuery bootstrap plugins are a bit advanced for my skill level. The most important part of what I need to chat seems to be on line 52, actives.collapse('hide') . I do not want this to happen if the parameter "data-collapse-type =" manual "is set (the exception of the attribute or parameter auto should support the default behavior).
I created jsfiddle where I experimented .
Can someone help me on the right track?
javascript jquery oop twitter-bootstrap
Hugh Jass Apr 04 2018-12-12T00: 00Z
source share