"vertical menu"
Bootstrap 3.3.0 Snippet by pnegrao

<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-md-3"> <ul class="nav nav-pills nav-stacked menu-level-2"> <li><a href="#" data-target-id="widgets">Widgets</a></li> <li><a href="#" data-target-id="pages">Pages</a></li> <li><a href="#" data-target-id="charts">Charts</a></li> <li><a href="#" data-target-id="table">Table</a></li> <li><a href="#" data-target-id="forms">Forms</a></li> <li><a href="#" data-target-id="calender">Calender</a></li> <li><a href="#" data-target-id="library">Library</a></li> <li><a href="#" data-target-id="applications">Applications</a></li> <li><a href="#" data-target-id="settings">Settings</a></li> </ul> </div> <div class="col-md-9 well menu-level-2-content" id="widgets"> <p>test</p> <p>test2</p> </div> <div class="col-md-9 well menu-level-2-content" id="pages"> Pages </div> <div class="col-md-9 well menu-level-2-content" id="charts"> Charts </div> <div class="col-md-9 well menu-level-2-content" id="table"> Table </div> <div class="col-md-9 well menu-level-2-content" id="forms"> Forms </div> <div class="col-md-9 well menu-level-2-content" id="calender"> Calender </div> <div class="col-md-9 well menu-level-2-content" id="library"> Library </div> <div class="col-md-9 well menu-level-2-content" id="applications"> Applications </div> <div class="col-md-9 well menu-level-2-content" id="settings"> Settings </div> </div> </div>
@import url(http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css); body{margin-top:20px;}
$(document).ready(function() { var navItems = $('.menu-level-2 li > a'); var navListItems = $('.menu-level-2 li'); var allWells = $('.menu-level-2-content'); var allWellsExceptFirst = $('.menu-level-2-content:not(:first)'); allWellsExceptFirst.hide(); navItems.click(function(e) { e.preventDefault(); navListItems.removeClass('active'); $(this).closest('li').addClass('active'); allWells.hide(); var target = $(this).attr('data-target-id'); $('#' + target).show(); }); });

Related: See More


Questions / Comments: