Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Driver Registration"
Bootstrap 3.1.0 Snippet by
hshelton
3.1.0
jQuery
registration
Preview
HTML
CSS
JS
View Full Screen
Forked from
Fork
Fork this
Parent
4.4K
 
1 Fav
Post to Facebook
Tweet this
<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 ----------> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"> <div class="container"> <div class="stepwizard"> <div class="stepwizard-row setup-panel"> <div class="stepwizard-step"> <a href="#step-1" type="button" class="btn btn-primary btn-circle">1</a> <p>Information </p> </div> <div class="stepwizard-step"> <a href="#step-2" type="button" class="btn btn-default btn-circle" disabled="disabled">2</a> <p>Service Tier</p> </div> <div class="stepwizard-step"> <a href="#step-3" type="button" class="btn btn-default btn-circle" disabled="disabled">3</a> <p>Payment Info</p> </div> <div class="stepwizard-step"> <a href="#step-4" type="button" class="btn btn-default btn-circle" disabled="disabled">4</a> <p>Complete</p> </div> </div> </div> <form role="form"> <div class="row setup-content" id="step-1"> <h3>User Information </h3> <div class="col-xs-6"> <div class="control-group"> <!-- Username --> <label class="control-label" for="username">Username</label> <div class="controls"> <input type="text" id="username" name="username" placeholder="" class="input-xlarge"> <span class="help-block">Username can contain any letters or numbers, without spaces</span> </div> </div> <div class="control-group"> <!-- E-mail --> <label class="control-label" for="email">E-mail</label> <div class="controls"> <input type="text" id="email" name="email" placeholder="" class="input-xlarge"> <span class="help-block"></span> </div> </div> <div class="control-group"> <!-- Password--> <label class="control-label" for="password">Password</label> <div class="controls"> <input type="password" id="password" name="password" placeholder="" class="input-xlarge"> <p class="help-block">Password should be at least 4 characters</p> </div> </div> <div class="control-group"> <!-- Password --> <label class="control-label" for="password_confirm">Password (Confirm)</label> <div class="controls"> <input type="password" id="password_confirm" name="password_confirm" placeholder="" class="input-xlarge"> <p class="help-block"></p> </div> </div> </div> <div class="col-xs-6"> <div class="control-group"> <label class="control-label" for="password">Company</label> <div class="controls"> <input type="text" id="company" class="input-xlarge"> <p class="help-block">The name of your company or organization</p> </div> </div> <div class="control-group"> <label class="control-label" for="password_confirm">Telephone (optional)</label> <div class="controls"> <input type="password" id="tel" class=" input-xlarge "> <p class=" help-block ">Help us give you better support.</p> </div> </div> </div> <button class="btn btn-primary nextBtn btn-lg pull-right " type="button">Next</button> </div> <div class="row setup-content" id="step-2"> <h3> Service Tier</h3> <div class="col-xs-6"> <div class="control-group"> <!-- Plan Selection --> <label class="control-label" >Service Tier</label> <div class="controls"> <select> <option> Free</option> <option> Tier 1 - $29/Month </option> <option>Tier 2 - $59/Month</option> <option>Tier 3 - $159/Month</option> </select> </div> </div> </div> <div class="col-xs-6"> <table class="table table-bordered"> <thead> <tr> <th></th> <th>Free</th> <th>Tier 1</th> <th>Tier 2</th> <th>Tier 3</th> </tr> </thead> <tbody> <tr> <td> Unlimited API Calls </td> <td><i class="fa fa-check"></i></td> <td> <i class="fa fa-check"></i> </td> <td> <i class="fa fa-check"></i> </td> <td> <i class="fa fa-check"></i> </td> </tr> <tr> <td> Unlimited Email Notifications </td> <td></td> <td> <i class="fa fa-check"></i> </td> <td> <i class="fa fa-check"></i> </td> <td> <i class="fa fa-check"></i> </td> </tr> <tr> <td> Replica Sets </td> <td> </td> <td> <i class="fa fa-check"></i> </td> <td> <i class="fa fa-check"></i> </td> <td> <i class="fa fa-check"></i> </td> </tr> <tr> <td>Daily Backups</td> <td></td> <td></td> <td></td> <td> <i class="fa fa-check"></i> </td> </tr> <tr> <td>Storage</td> <td>5 GB</td> <td>200 GB</td> <td>400 GB</td> <td>1 TB</td> </tr> <tr> <td>Apps</td> <td>3 </td> <td>10</td> <td>20</td> <td>Unlimited</td> </tr> </tbody> </table> </div> <button class="btn btn-primary nextBtn btn-lg pull-right" type="button">Next</button> </div> <div class="row setup-content" id="step-3"> <div class="col-xs-12"> <button class="btn btn-primary nextBtn btn-lg pull-right" type="button">Next</button> </div> </div> <div class="row setup-content" id="step-4"> <div class="col-xs-12"> <button class="btn btn-primary nextBtn btn-lg pull-right" type="button">Next</button> </div> </div> </form> </div>
body{ margin-top: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: 14px; 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; } .btn-circle { width: 30px; height: 30px; 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'); //custom code by @naresh for file input sep var fileInput = document.getElementById('sep_json'); var fileDisplayArea = document.getElementById('sep_jsondisplay'); var fileInput1 = document.getElementById('action_json'); var fileDisplayArea1 = document.getElementById('action_jsondisplay'); fileInput.addEventListener('change', function(e) { var file = fileInput.files[0]; var textType = /text.*/; if (file.type.match(textType)) { var reader = new FileReader(); reader.onload = function(e) { var res= reader.result; function isJSON (something) { if (typeof something != 'string') something = JSON.stringify(something); try { JSON.parse(something); return true; } catch (e) { return false; } } if(isJSON(res)){ fileDisplayArea.innerText = JSON.stringify(res); }else{ fileDisplayArea.innerText = "File content is not JSON" } } reader.readAsText(file); } else { fileDisplayArea.innerText = "File not supported!" } }); fileInput1.addEventListener('change', function(e) { var file = fileInput1.files[0]; var textType = /text.*/; if (file.type.match(textType)) { var reader = new FileReader(); reader.onload = function(e) { var res= reader.result; function isJSON (something) { if (typeof something != 'string') something = JSON.stringify(something); try { JSON.parse(something); return true; } catch (e) { return false; } } if(isJSON(res)){ fileDisplayArea1.innerText = JSON.stringify(res); }else{ fileDisplayArea1.innerText = "File content is not JSON" } } reader.readAsText(file); } else { fileDisplayArea1.innerText = "File not supported!" } }); //@naresh action dynamic childs var next = 0; $("#add-more").click(function(e){ e.preventDefault(); var addto = "#field" + next; var addRemove = "#field" + (next); next = next + 1; var newIn = ' <div id="field'+ next +'" name="field'+ next +'"><!-- Text input--><div class="form-group"> <label class="col-md-4 control-label" for="action_id">Action Id</label> <div class="col-md-5"> <input id="action_id" name="action_id" type="text" placeholder="" class="form-control input-md"> </div></div><br><br><!-- Text input--><div class="form-group"> <label class="col-md-4 control-label" for="action_name">Action Name</label> <div class="col-md-5"> <input id="action_name" name="action_name" type="text" placeholder="" class="form-control input-md"> </div></div><br><br><!-- File Button --> <div class="form-group"> <label class="col-md-4 control-label" for="action_json">Action JSON File</label> <div class="col-md-4"> <input id="action_json" name="action_json" class="input-file" type="file"> </div></div></div>'; var newInput = $(newIn); var removeBtn = '<button id="remove' + (next - 1) + '" class="btn btn-danger remove-me" >Remove</button></div></div><div id="field">'; var removeButton = $(removeBtn); $(addto).after(newInput); $(addRemove).after(removeButton); $("#field" + next).attr('data-source',$(addto).attr('data-source')); $("#count").val(next); $('.remove-me').click(function(e){ e.preventDefault(); var fieldNum = this.id.charAt(this.id.length-1); var fieldID = "#field" + fieldNum; $(this).remove(); $(fieldID).remove(); }); }); });
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76