"Step Wizard (Working) 2"
Bootstrap 3.0.0 Snippet by makey

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.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 form-group"> <div class="col-xs-12"> <ul class="nav nav-pills nav-justified thumbnail setup-panel"> <li class="active"><a href="#step-1"> <h4 class="list-group-item-heading">Personal</h4> <p class="list-group-item-text">First step description</p> </a></li> <li class="disabled"><a href="#step-2"> <h4 class="list-group-item-heading">Address</h4> <p class="list-group-item-text">Second step description</p> </a></li> <li class="disabled"><a href="#step-3"> <h4 class="list-group-item-heading">Fianance</h4> <p class="list-group-item-text">Third step description</p> </a></li> <li class="disabled"><a href="#step-4"> <h4 class="list-group-item-heading">Confirmation</h4> <p class="list-group-item-text">Third step description</p> </a></li> </ul> </div> </div> <div class="row setup-content" id="step-1"> <div class="col-xs-12"> <div class="col-md-12 well text-center"> <h1> STEP 1</h1> <button id="activate:step-2" class="btn btn-primary btn-lg">go to Address</button> </div> </div> </div> <div class="row setup-content" id="step-2"> <div class="col-xs-12"> <div class="col-md-12 well text-center"> <h1 class="text-center"> STEP 2</h1> <button id="activate:step-1" class="btn btn-primary btn-lg">back to Personal</button> <button id="activate:step-3" class="btn btn-primary btn-lg">go to Fainance</button> </div> </div> </div> <div class="row setup-content" id="step-3"> <div class="col-xs-12"> <div class="col-md-12 well text-center"> <h1 class="text-center"> STEP 3</h1> <button id="activate:step-2" class="btn btn-primary btn-lg">back to Address</button> <button id="activate:step-4" class="btn btn-primary btn-lg">go to Confirmation</button> </div> </div> </div> <div class="row setup-content" id="step-4"> <div class="col-xs-12"> <div class="col-md-12 well text-center"> <h1 class="text-center"> STEP 4</h1> <button id="activate:step-3" class="btn btn-primary btn-lg">back to Finance</button> <button id="activate:step-2" class="btn btn-primary btn-lg">APPLY</button> </div> </div> </div> </div> <div><p id="info">.helllo</p></div> <div><p id="info2">.</p></div>
body{ margin-top:20px; }
$(document).ready(function() { var navListItems = $('ul.setup-panel li a'), allWells = $('.setup-content'); allWells.hide(); navListItems.click(function(e) { e.preventDefault(); var $target = $($(this).attr('href')), $item = $(this).closest('li'); if (!$item.hasClass('disabled')) { navListItems.closest('li').removeClass('active'); $item.addClass('active'); allWells.hide(); $target.show(); } }); $('ul.setup-panel li.active a').trigger('click'); // DEMO ONLY // $('#activate-step-1').on('click', function(e) { $("#info").text($(this).attr('id')); //$('ul.setup-panel li:eq(1)').removeClass('disabled'); $('ul.setup-panel li a[href="#step-1"]').trigger('click'); //$(this).remove(); }) $('#activate-step-2').on('click', function(e) { $("#info").text($(this).attr('id')); //$('ul.setup-panel li:eq(1)').removeClass('disabled'); $('ul.setup-panel li a[href="#step-2"]').trigger('click'); //$(this).remove(); }) $('#activate-step-3').on('click', function(e) { $("#info").text($(this).attr('id')); //$('ul.setup-panel li:eq(2)').removeClass('disabled'); $('ul.setup-panel li a[href="#step-3"]').trigger('click'); //$(this).remove(); }) $('#activate-step-4').on('click', function(e) { $("#info").text($(this).attr('id')); //$('ul.setup-panel li:eq(3)').removeClass('disabled'); $('ul.setup-panel li a[href="#step-4"]').trigger('click'); //$(this).remove(); }) $('button').on('click', function(e) { $("#info2").text($(this).attr('id')) var target = $(this).attr('id').split(':')[1]; var temp = target.split("-")[1] - 1; $('ul.setup-panel li:eq(' + temp + ')').removeClass('disabled'); $('ul.setup-panel li a[href="#' + target + '"]').trigger('click'); }); });

Related: See More


Questions / Comments: