"Demo"
Bootstrap 3.3.0 Snippet by Tmoorfoot

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div class="panel-group" id="accordion"> <div class="panel panel-default col-lg-2 no-padding"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne"> MRI</a> </h4> </div> <div id="collapseOne" class="panel-collapse collapse"> <div class="panel-body"> <div class="panel-group accordion2"> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent=".accordion2" href="#collapseOne-1"> Upper Body</a> </h4> </div> <div id="collapseOne-1" class="panel-collapse collapse"> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="select" data-parent="accordion2" href="#collapseOne-1"></li> Brain</a> <br><a data-toggle="select" data-parent="accordion2" href="#collapseOne-1"> Chest</a> <a data-toggle="select" data-parent="accordion2" href="#collapseOne-1"> Shoulder</a> </h4> </div> <div id="collapseOne-1" class="panel-collapse collapse"> <div class="panel-body"> </div> </div> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent=".accordion2" href="#collapseOne-2"> Lower Body</a> </h4> </div> <div id="collapseOne-2" class="panel-collapse collapse"> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="select" data-parent="accordion2" href="#collapseOne-1"></li> Brain</a> <br><a data-toggle="select" data-parent="accordion2" href="#collapseOne-1"> Chest</a> <a data-toggle="select" data-parent="accordion2" href="#collapseOne-1"> Shoulder</a> </h4> </div> <div id="collapseOne-1" class="panel-collapse collapse"> <div class="panel-body"> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="panel panel-default col-lg-2 no-padding"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo"> Ultrasound</a> </h4> </div> <div id="collapseTwo" class="panel-collapse collapse"> <div class="panel-body"> <div class="panel-group accordion2"> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent=".accordion2" href="#collapseTwo-5"> Food</a> </h4> </div> <div id="collapseTwo-5" class="panel-collapse collapse"> <div class="panel-body"> <ul> <li><a href="">link</a></li> <li><a href="">link</a></li> <li><a href="">link</a></li> <li><a href="">link</a></li> </ul> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent=".accordion2" href="#collapseTwo-6"> Nappied</a> </h4> </div> <div id="collapseTwo-6" class="panel-collapse collapse"> <div class="panel-body"> <ul> <li><a href="">link</a></li> <li><a href="">link</a></li> <li><a href="">link</a></li> <li><a href="">link</a></li> </ul> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent=".accordion2" href="#collapseTwo-7"> Toiletries</a> </h4> </div> <div id="collapseTwo-7" class="panel-collapse collapse"> <div class="panel-body"> <ul> <li><a href="">link</a></li> <li><a href="">link</a></li> <li><a href="">link</a></li> <li><a href="">link</a></li> </ul> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent=".accordion2" href="#collapseTwo-8"> Accessories</a> </h4> </div> <div id="collapseTwo-8" class="panel-collapse collapse"> <div class="panel-body"> <ul> <li><a href="">link</a></li> <li><a href="">link</a></li> <li><a href="">link</a></li> <li><a href="">link</a></li> </ul> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div>
.panel-group .panel + .panel { margin-top: 0px; }
$(document).ready(function(){ function toggleIcon(e) { $(e.target) .prev('.panel-heading') .find(".more-less") .toggleClass('glyphicon-plus glyphicon-minus'); } $('.panel-group').on('hidden.bs.collapse', toggleIcon); $('.panel-group').on('shown.bs.collapse', toggleIcon); $('.accordion2').on('hidden.bs.collapse', toggleIcon); $('.accordion2').on('shown.bs.collapse', toggleIcon); });

Related: See More


Questions / Comments: