Skip to content Skip to sidebar Skip to footer

Force Open Minimum One Accordion Bootstrap Tab

I am looking for the same following solution. I wanted to add more in this example but unable to comment due to low reputation points so adding here Bootstrap Collapse Accordion on

Solution 1:

Check this pen: Codepen link

What I have done is add the following javascript to the code.

$('.panel-heading a').on('click',function(e){
   if($(this).parents('.panel').children('.panel-collapse').hasClass('in')){
        e.stopPropagation();
    }
});

Hope this helps.

Post a Comment for "Force Open Minimum One Accordion Bootstrap Tab"