"Accordion Menu with tab"
Bootstrap 3.1.0 Snippet by gurramanilkumar

<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.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"> <div class="panel-group" id="accordion"> <div role="tabpanel"> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne"><span class="glyphicon glyphicon-folder-close"> </span>Content</a> </h4> </div> <div id="collapseOne" class="panel-collapse collapse in"> <div class="panel-body"> <table class="table"> <tr> <td> <span class="glyphicon glyphicon-pencil text-primary"></span><a href="#tab1" aria-controls="tab1" role="tab" data-toggle="tab">Articles</a> </td> </tr> <tr> <td> <span class="glyphicon glyphicon-flash text-success"></span><a href="#tab2" aria-controls="tab2" role="tab" data-toggle="tab">News</a> </td> </tr> <tr> <td> <span class="glyphicon glyphicon-file text-info"></span><a href="#tab3" aria-controls="tab3" role="tab" data-toggle="tab">Newsletters</a> </td> </tr> </table> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo"><span class="glyphicon glyphicon-th"> </span>Modules</a> </h4> </div> <div id="collapseTwo" class="panel-collapse collapse"> <div class="panel-body"> <table class="table"> <tr> <td> <a href="#tab4" aria-controls="tab4" role="tab" data-toggle="tab">Orders</a> </td> </tr> <tr> <td> <a href="#tab5" aria-controls="tab5" role="tab" data-toggle="tab">Invoices</a> </td> </tr> <tr> <td> <a href="#tab6" aria-controls="tab6" role="tab" data-toggle="tab">Shipments</a> </td> </tr> </table> </div> </div> </div> </div> </div> </div> <div class="col-sm-9 col-md-9"> <div class="well"> <div class="tab-content"> <div role="tabpanel" class="tab-pane active" id="tab1"> <h1>Tab1</h1> </div> <div role="tabpanel" class="tab-pane" id="tab2"> <h1>Tab2</h1> </div> <div role="tabpanel" class="tab-pane" id="tab3"> <h1>Tab3</h1> </div> <div role="tabpanel" class="tab-pane" id="tab4"> <h1>Tab4</h1> </div> <div role="tabpanel" class="tab-pane" id="tab5"> <h1>Tab5</h1> </div> <div role="tabpanel" class="tab-pane" id="tab6"> <h1>Tab6</h1> </div> </div> </div> </div> </div> </div>
body{margin-top:50px;} .glyphicon { margin-right:10px; } .panel-body { padding:0px; } .panel-body table tr td { padding-left: 15px } .panel-body .table {margin-bottom: 0px; }
$('#myTab a').click(function (e) { e.preventDefault() $(this).tab('show') })

Related: See More


Questions / Comments: