"tabs"
Bootstrap 3.3.0 Snippet by jhliberty

<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"> <ul class="nav nav-pills" id="signup-in-form"> <li role="presentation" class="active"><a href="#" id="client">Client</a></li> <li role="presentation"><a href="#" id="consultant">Consultant</a></li> </ul> <p>documentation available here: <a href="http://getbootstrap.com/javascript/#tabs">http://getbootstrap.com/javascript/#tabs</a></p> </div> </div>
$('#signup-in-form a').click(function (e) { e.preventDefault() $(this).tab('show') }) // Multiple ways to select tabs // $('#myTab a[href="#profile"]').tab('show') // Select tab by name // $('#myTab a:first').tab('show') // Select first tab // $('#myTab a:last').tab('show') // Select last tab // $('#myTab li:eq(2) a').tab('show') // Select third tab (0-indexed)

Related: See More


Questions / Comments: