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
"Clean Registration form"
Bootstrap 3.3.0 Snippet by
Damnation
3.3.0
jQuery
registration
Preview
HTML
CSS
JS
View Full Screen
Fork
Fork this
33.3K
 
12 Fav
Post to Facebook
Tweet this
<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-8 col-md-offset-2"> <form role="form" method="POST" action="#"> <legend class="text-center">Register</legend> <fieldset> <legend>Account Details</legend> <div class="form-group col-md-6"> <label for="first_name">First name</label> <input type="text" class="form-control" name="" id="first_name" placeholder="First Name"> </div> <div class="form-group col-md-6"> <label for="last_name">Last name</label> <input type="text" class="form-control" name="last_name" id="" placeholder="Last Name"> </div> <div class="form-group col-md-12"> <label for="">Email</label> <input type="email" class="form-control" name="" id="" placeholder="Email"> </div> <div class="form-group col-md-6"> <label for="password">Password</label> <input type="password" class="form-control" name="" id="password" placeholder="Password"> </div> <div class="form-group col-md-6"> <label for="confirm_password">Confirm Password</label> <input type="password" class="form-control" name="" id="confirm_password" placeholder="Confirm Password"> </div> </fieldset> <fieldset> <legend>Optional Details</legend> <div class="form-group col-md-6"> <label for="country">Country of Residence</label> <select class="form-control" name="" id="country"> <option>Country 1</option> <option>Country 2</option> <option>Country 3</option> </select> </div> <div class="form-group col-md-12"> <label for="found_site">How did you find out about the site?</label> <select class="form-control" name="" id="found_site"> <option>Company</option> <option>Friend</option> <option>Colleague</option> <option>Advertisement</option> <option>Google Search</option> <option>Online Article</option> <option value="other" >Other</option> </select> </div> <div class="form-group col-md-12 hidden"> <label for="specify">Please Specify</label> <textarea class="form-control" id="specify" name=""></textarea> </div> </fieldset> <div class="form-group"> <div class="col-md-12"> <div class="checkbox"> <label> <input type="checkbox" value="" id=""> I accept the <a href="#">terms and conditions</a>. </label> </div> </div> </div> <div class="form-group"> <div class="col-md-12"> <button type="submit" class="btn btn-primary"> Register </button> <a href="#">Already have an account?</a> </div> </div> </form> </div> </div> </div>
form * { border-radius:0 !important; } form > fieldset > legend { font-size:120%; }
$(document).ready(function() { $('#found_site').on('change', function() { $(this).val() == "other" ? $('#specify').closest('.form-group').show() : $('#specify').closest('.form-group').hide(); }) })
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76