Bootstrap Collapsive Listgroup

 

collapsibles are used to hide or show large amount of content. To make collapsive list group, .panel-collapse collapse class is used and inside that respective div a ul component with .list-group class is used.

 
 
 
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Bootstrap Collapse Example</title> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h2>Collapsible List Group</h2> <div class="panel-group"> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" href="#collapse1">Collapsible list group</a> </h4> </div> <div id="collapse1" class="panel-collapse collapse"> <ul class="list-group"> <li class="list-group-item">HTML</li> <li class="list-group-item">Javascript</li> <li class="list-group-item">Angular</li> </ul> <div class="panel-footer">Footer</div> </div> </div> </div> </div> </body> </html>
Output