"Search with filter"
Bootstrap 3.3.0 Snippet by ccela

<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-primary btn-block btn-compose-email">Buscar   <span class="glyphicon glyphicon-search" aria-hidden="true"></span></a> <div class="row"> <div class="form-group required"> <label class="control-label col-md-3 requiredField" style="margin-top: 5px">Sorteo:</label> <div class="col-md-9 "> <input class="form-control" id="sorteo" maxlength="30" name="sorteo" placeholder="Número de Sorteo" style="margin-top: 5px; margin-bottom: 5px" type="text" /> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Periódo</h3> <span class="pull-right clickable"><i class="glyphicon glyphicon-chevron-up"></i></span> </div> <div class="panel-body" > <div class="row form-group required" style="margin-left: -20px"> <label class="control-label col-md-3 requiredField" >Fecha Desde:</label> <div class="col-md-9 "> <input class="form-control" id="sorteo" maxlength="30" name="sorteo" placeholder="Número de Sorteo" type="date" /> </div> </div> <div class="row form-group required" style="margin-left: -20px"> <label class="control-label col-md-3 requiredField" >Fecha Hasta:</label> <div class="col-md-9 "> <input class="form-control" id="sorteo" maxlength="30" name="sorteo" placeholder="Número de Sorteo" type="date" /> </div> </div> </div> </div> </div> <div class="col-sm-9 col-md-9" > <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Monitor</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"> </div> </div> </div> </div> </div>
body{margin:0px;margin-top: 5px;} #accordion .glyphicon { margin-right:0px; } .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: