"Steps Icons"
Bootstrap 3.3.0 Snippet by mgustin12

<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="http://fontawesome.io/assets/font-awesome/css/font-awesome.css" rel="stylesheet" media="screen"> <div class="container"> <div class="stepwizard"> <div class="stepwizard-row setup-panel"> <div class="stepwizard-step"> <button type="button" class="btn btn-success btn-circle" disabled="disabled" id="1"><i class="glyphicon glyphicon-list"></i></button> <p>Company Info</p> </div> <div class="stepwizard-step"> <button type="button" class="btn btn-default btn-circle" disabled="disabled" id="2"><i class="glyphicon glyphicon-heart"></i></button> <p>Select Causes</p> </div> <div class="stepwizard-step"> <button type="button" class="btn btn-default btn-circle" disabled="disabled" id="3"><i class="glyphicon glyphicon-check"></i></button> <p>Select Verification</p> </div> <div class="stepwizard-step"> <button type="button" class="btn btn-default btn-circle" disabled="disabled" id="4"><i class="glyphicon glyphicon-plus-sign"></i></button> <p>Select Membership</p> </div> </div> </div> <div class="col-md-12"> <button type="submit" class="btn btn-primary pull-right" id="btnNext">Next</button> </div>
body{margin:40px;} .stepwizard-step p { margin-top: 10px; } .stepwizard-row { display: table-row; } .stepwizard { display: table; width: 100%; position: relative; } .stepwizard-step button[disabled] { opacity: 1 !important; filter: alpha(opacity=100) !important; } .stepwizard-row:before { top: 50px; bottom: 0; position: absolute; content: " "; width: 100%; height: 1px; background-color: #ccc; z-order: 0; } .stepwizard-step { display: table-cell; text-align: center; position: relative; } .stepwizard-step p { margin-top:10px; } .btn .glyphicon { font-size: 40px; } .btn-success .glyphicon { color: #fff; font-size: 40px; } .btn-circle { width: 100px; height: 100px; text-align: center; padding: 6px 0; font-size: 12px; line-height: 1.428571429; border-radius: 15px; }
$(document).ready(function () { var navListItems = $('div.setup-panel div a'), allWells = $('.setup-content'), allNextBtn = $('.nextBtn'); allWells.hide(); navListItems.click(function (e) { e.preventDefault(); var $target = $($(this).attr('href')), $item = $(this); if (!$item.hasClass('disabled')) { navListItems.removeClass('btn-primary').addClass('btn-default'); $item.addClass('btn-primary'); allWells.hide(); $target.show(); $target.find('input:eq(0)').focus(); } }); allNextBtn.click(function(){ var curStep = $(this).closest(".setup-content"), curStepBtn = curStep.attr("id"), nextStepWizard = $('div.setup-panel div a[href="#' + curStepBtn + '"]').parent().next().children("a"), curInputs = curStep.find("input[type='text'],input[type='url']"), isValid = true; $(".form-group").removeClass("has-error"); for(var i=0; i<curInputs.length; i++){ if (!curInputs[i].validity.valid){ isValid = false; $(curInputs[i]).closest(".form-group").addClass("has-error"); } } if (isValid) nextStepWizard.removeAttr('disabled').trigger('click'); }); $('div.setup-panel div a.btn-primary').trigger('click'); });

Related: See More


Questions / Comments: