"Accordion"
Bootstrap 3.3.0 Snippet by farayov

<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 ----------> <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 ----------> <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> <div class="container"> <div class="row"> <div class="col-md-12"> <!-- Nav tabs category --> <ul class="nav nav-tabs faq-cat-tabs"> <li class="active"><a href="#faq-cat-1" data-toggle="tab"><i class="glyphicon glyphicon-user"></i>Академия</a></li> <li><a href="#faq-cat-1" data-toggle="tab"><i class="glyphicon glyphicon-plus"></i>Университет</a></li> <li><a href="#faq-cat-1" data-toggle="tab"><i class="glyphicon glyphicon-delete"></i>Институт</a></li> <li><a href="#faq-cat-1" data-toggle="tab"><i class="glyphicon glyphicon-leaf"></i>Филиал</a></li> <li><a href="#faq-cat-1" data-toggle="tab"><i class="glyphicon glyphicon-user"></i>Хорижий ОТМ ва филиаллар</a></li> <li><a href="#faq-cat-1" data-toggle="tab"><i class="glyphicon glyphicon-user"></i>Нодавлат ОТМ</a></li> </ul> <!-- Tab panes --> <div class="tab-content faq-cat-content"> <div class="tab-pane active in fade" id="faq-cat-1"> <div class="panel-group" id="accordion-cat-1"> <div class="panel panel-default panel-faq"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#accordion-cat-1" href="#faq-cat-1-sub-1"> <h4 class="panel-title"> ОТМ 1 <span class="pull-right"><i class="glyphicon glyphicon-plus"></i></span> </h4> </a> </div> <div id="faq-cat-1-sub-1" class="panel-collapse collapse"> <div class="panel-body"> <div class="row form-group"> <div class="col-sm-4">Талаба профили</div> <div class=" col-sm-3 btn-group" data-toggle="buttons"> <button class="btn btn-primary btn-sm active"> Кириш </button> <div class="btn-wrapper wow fadeInUp" style="visibility: visible; animation-name: fadeInUp;"> <a href="/yoriqnoma/" class="boxed-btn btn-rounded">Yo‘riqnomalar</a> </div> </div> </div> <div class="row form-group"> <div class="col-sm-4">ОТМ профили</div> <div class=" col-sm-3 btn-group" data-toggle="buttons"> <button class="btn btn-primary btn-sm active"> Кириш </button> </div> </div> </div> </div> </div> <div class="panel panel-default panel-faq"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#accordion-cat-1" href="#faq-cat-1-sub-2"> <h4 class="panel-title"> ОТМ 2 <span class="pull-right"><i class="glyphicon glyphicon-plus"></i></span> </h4> </a> </div> <div id="faq-cat-1-sub-2" class="panel-collapse collapse"> <div class="panel-body"> <div class="row form-group"> <div class="col-sm-4">Талаба профили</div> <div class=" col-sm-3 btn-group" data-toggle="buttons"> <button class="btn btn-primary btn-sm active"> Кириш </button> </div> </div> <div class="row form-group"> <div class="col-sm-4">ОТМ профили</div> <div class=" col-sm-3 btn-group" data-toggle="buttons"> <button class="btn btn-primary btn-sm active"> Кириш </button> </div> </div> </div> </div> </div> </div> </div> </div> <div class="tab-pane fade" id="faq-cat-2"> <div class="panel-group" id="accordion-cat-2"> <div class="panel panel-default panel-faq"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#accordion-cat-2" href="#faq-cat-2-sub-1"> <h4 class="panel-title"> Nested item 1 <span class="pull-right"><i class="glyphicon glyphicon-plus"></i></span> </h4> </a> </div> <div id="faq-cat-2-sub-1" class="panel-collapse collapse"> <div class="panel-body"> <div class="row form-group"> <div class="col-sm-2">Fever</div> <div class=" col-sm-3 btn-group" data-toggle="buttons"> <label class="btn btn-primary btn-sm active"> <input type="checkbox" autocomplete="off" checked>Yes </label> <label class="btn btn-primary btn-sm"> <input type="checkbox" autocomplete="off">No </label> </div> </div> <div class="row form-group"> <div class="col-sm-2">Fever</div> <div class=" col-sm-3 btn-group" data-toggle="buttons"> <label class="btn btn-primary btn-sm active"> <input type="checkbox" autocomplete="off" checked>Yes </label> <label class="btn btn-primary btn-sm"> <input type="checkbox" autocomplete="off">No </label> </div> </div> <div class="row form-group"> <div class="col-sm-2">Fever</div> <div class=" col-sm-3 btn-group" data-toggle="buttons"> <label class="btn btn-primary btn-sm active"> <input type="checkbox" autocomplete="off" checked>Yes </label> <label class="btn btn-primary btn-sm"> <input type="checkbox" autocomplete="off">No </label> </div> </div> <div class="row form-group"> <div class="col-sm-2">Fever</div> <div class=" col-sm-3 btn-group" data-toggle="buttons"> <label class="btn btn-primary btn-sm active"> <input type="checkbox" autocomplete="off" checked>Yes </label> <label class="btn btn-primary btn-sm"> <input type="checkbox" autocomplete="off">No </label> </div> </div> </div> </div> </div> <div class="panel panel-default panel-faq"> <div class="panel-heading"> <a data-toggle="collapse" data-parent="#accordion-cat-2" href="#faq-cat-2-sub-2"> <h4 class="panel-title"> Nested item #2 <span class="pull-right"><i class="glyphicon glyphicon-plus"></i></span> </h4> </a> </div> <div id="faq-cat-2-sub-2" class="panel-collapse collapse"> <div class="panel-body"> <div class="row form-group"> <div class="col-sm-2">Fever</div> <div class=" col-sm-3 btn-group" data-toggle="buttons"> <label class="btn btn-primary btn-sm active"> <input type="checkbox" autocomplete="off" checked>Yes </label> <label class="btn btn-primary btn-sm"> <input type="checkbox" autocomplete="off">No </label> </div> </div> <div class="row form-group"> <div class="col-sm-2">Fever</div> <div class=" col-sm-3 btn-group" data-toggle="buttons"> <label class="btn btn-primary btn-sm active"> <input type="checkbox" autocomplete="off" checked>Yes </label> <label class="btn btn-primary btn-sm"> <input type="checkbox" autocomplete="off">No </label> </div> </div> <div class="row form-group"> <div class="col-sm-2">Fever</div> <div class=" col-sm-3 btn-group" data-toggle="buttons"> <label class="btn btn-primary btn-sm active"> <input type="checkbox" autocomplete="off" checked>Yes </label> <label class="btn btn-primary btn-sm"> <input type="checkbox" autocomplete="off">No </label> </div> </div> <div class="row form-group"> <div class="col-sm-2">Fever</div> <div class=" col-sm-3 btn-group" data-toggle="buttons"> <label class="btn btn-primary btn-sm active"> <input type="checkbox" autocomplete="off" checked>Yes </label> <label class="btn btn-primary btn-sm"> <input type="checkbox" autocomplete="off">No </label> </div> </div> <div class="row form-group"> <div class="col-sm-2">Fever</div> <div class=" col-sm-3 btn-group" data-toggle="buttons"> <label class="btn btn-primary btn-sm active"> <input type="checkbox" autocomplete="off" checked>Yes </label> <label class="btn btn-primary btn-sm"> <input type="checkbox" autocomplete="off">No </label> </div> </div> <div class="row form-group"> <div class="col-sm-2">Fever</div> <div class=" col-sm-3 btn-group" data-toggle="buttons"> <label class="btn btn-primary btn-sm active"> <input type="checkbox" autocomplete="off" checked>Yes </label> <label class="btn btn-primary btn-sm"> <input type="checkbox" autocomplete="off">No </label> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div>
body { padding-top: 30px; } .btn-wrapper .boxed-btn { margin: 0 10px; border: none; width: 125px; height: 40px; line-height: 55px; position: relative; z-index: 1; overflow: hidden; font-size: 16px; font-weight: 600; background-image: -moz-linear-gradient(50deg, #5e2ced 0%, #9749f8 100%); background-image: -webkit-linear-gradient( 50deg, #5e2ced 0%, #9749f8 100%); background-image: -ms-linear-gradient(50deg, #5e2ced 0%, #9749f8 100%); -webkit-transition: all 0.3s ease-in; -moz-transition: all 0.3s ease-in; -o-transition: all 0.3s ease-in; transition: all 0.3s ease-in; text-transform: capitalize; } .boxed-btn.btn-rounded { border-radius: 30px; } .btn-wrapper .boxed-btn { margin: 0 10px; border: none; width: 120px; height: 40px; line-height: 55px; position: relative; z-index: 1; overflow: hidden; font-size: 14px; font-weight: 600; background-image: -moz-linear-gradient(50deg, #5e2ced 0%, #9749f8 100%); background-image: -webkit-linear-gradient( 50deg, #5e2ced 0%, #9749f8 100%); background-image: -ms-linear-gradient(50deg, #5e2ced 0%, #9749f8 100%); -webkit-transition: all 0.3s ease-in; -moz-transition: all 0.3s ease-in; -o-transition: all 0.3s ease-in; transition: all 0.3s ease-in; text-transform: capitalize; } .boxed-btn { display: inline-block; text-align: center; height: 60px; line-height: 60px; font-size: 16px; text-transform: capitalize; font-weight: 600; color: #fff; width: 202px; background-color: #500ade; -webkit-transition: all 0.3s ease-in; -moz-transition: all 0.3s ease-in; -o-transition: all 0.3s ease-in; transition: all 0.3s ease-in; } a, a:hover, a:focus, a:active { text-decoration: none; outline: none; } .faq-cat-content { margin-top: 25px; } .faq-cat-tabs li a { padding: 15px 10px 15px 10px; background-color: #ffffff; border: 1px solid #dddddd; color: #777777; } .nav-tabs li a:focus, .panel-heading a:focus { outline: none; } .panel-heading a, .panel-heading a:hover, .panel-heading a:focus { text-decoration: none; color: #777777; } .faq-cat-content .panel-heading:hover { background-color: #efefef; } .active-faq { border-left: 5px solid #888888; } .panel-faq .panel-heading .panel-title span { font-size: 13px; font-weight: normal; }
$(document).ready(function() { $('.collapse').on('show.bs.collapse', function() { var id = $(this).attr('id'); $('a[href="#' + id + '"]').closest('.panel-heading').addClass('active-faq'); $('a[href="#' + id + '"] .panel-title span').html('<i class="glyphicon glyphicon-minus"></i>'); }); $('.collapse').on('hide.bs.collapse', function() { var id = $(this).attr('id'); $('a[href="#' + id + '"]').closest('.panel-heading').removeClass('active-faq'); $('a[href="#' + id + '"] .panel-title span').html('<i class="glyphicon glyphicon-plus"></i>'); }); });

Related: See More


Questions / Comments: