I'm currently working with a bootstrap collapsible button group and I'm facing an issue where only one group box should be visible at any given time. I tried creating a JavaScript function to remove the "in" class and update the aria-expanded attribute, but it seems redundant because of the data-parent="#myGroup" property.
Unfortunately, the data-parent="#myGroup" attribute is not functioning as expected for me, and I've struggled to find a solution using this method.
Even after experimenting with applying the data-parent attribute to individual elements, buttons, and collapse groups, I haven't been able to achieve the desired outcome.
In the provided fiddle example, you can observe that multiple groups can remain visible simultaneously. My goal is to have only one group show at a time when a button is clicked.