I retrieve my content using an ajax call and create all resettable panels at runtime. but the switching function does not work that way. I use the basic puppet collection and item view to create my group group.
I checked with static content and works fine with static data.
I checked a few links, but in my case nothing works.
How to make Twitter Bootstrap Collapse work on dynamically loaded html using ajax
https://github.com/twbs/bootstrap/issues/2274
Here my html looks like this:
<div id="accordion" class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">
<ul class="home_nav" data-toggle="collapse" data-parent="#accordion"
data-target="NewsMaintenanceMenu">
...
</ul>
<span class=""><i class="glyphicon glyphicon-chevron-right"></i></span>
</div>
<div id="NewsMaintenanceMenu" class="panel-collapse collapse">
<div class="panel-body">
<table class="table table-striped">
<tbody>
....
</tbody>
</table>
</div>
</div>
</div>
</div>
source
share