"Search with filter"
Bootstrap 3.3.0 Snippet by unnikrishnanes

<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="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div class="col-sm-3 col-md-3"> <a href="mail-compose.html" class="btn btn-danger btn-block btn-compose-email">Filter Results</a> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Height</h3> <span class="pull-right clickable"><i class="glyphicon glyphicon-chevron-up"></i></span> </div> <div class="panel-body">Panel content</div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Age</h3> <span class="pull-right clickable"><i class="glyphicon glyphicon-chevron-up"></i></span> </div> <div class="panel-body">Panel content</div> </div> </div> <div class="col-sm-9 col-md-9"> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Dashboard</h3> <!-- <div class="pull-right"> <button type="button" class="close" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div>--> </div> <div class="panel-body"> <span class="pull-right"> <a href="#" class="btn btn-default">Manage categories</a> <a href="#" class="btn btn-default">Arrange</a> <a href="#" class="btn btn-lg btn-primary"> <span class="glyphicon glyphicon-plus"></span> Create new</a> </span> <p>Admin Dashboard Accordion List Group Menu</p> <div class="alert alert-success"><h3>Yes! It's compatible with BS 3.0.3, 3.1 & 3.2 </h3></div> </div> </div> </div> </div> </div>
body{margin:50px;} #accordion .glyphicon { margin-right:10px; } .clickable{ cursor: pointer; } .panel-heading span { margin-top: -20px; font-size: 15px; }
$(document).on('click', '.panel-heading span.clickable', function(e){ var $this = $(this); if(!$this.hasClass('panel-collapsed')) { $this.parents('.panel').find('.panel-body').slideUp(); $this.addClass('panel-collapsed'); $this.find('i').removeClass('glyphicon-chevron-up').addClass('glyphicon-chevron-down'); } else { $this.parents('.panel').find('.panel-body').slideDown(); $this.removeClass('panel-collapsed'); $this.find('i').removeClass('glyphicon-chevron-down').addClass('glyphicon-chevron-up'); } })

Related: See More


Questions / Comments: