"Mix & Match Register"
Bootstrap 3.3.0 Snippet by santhoshawe

<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-xs-12 col-sm-8 col-md-6 col-sm-offset-2 col-md-offset-3"> <form role="form" runat="server"> <h2><small>Cryptomail Sign Up</small></h2> <hr class="colorgraph" /> <div class="row"> <div class="col-xs-12 col-sm-6 col-md-6"> <div class="form-group"> <label for="txtfname">First Name</label> <input type="text" name="txtfname" id="txtfname" class="form-control input-lg" placeholder="First Name" tabindex="1" /> </div> </div> <div class="col-xs-12 col-sm-6 col-md-6"> <div class="form-group"> <label for="txtlname">Last Name</label> <input type="text" name="txtlname" id="txtlname" class="form-control input-lg" placeholder="First Name" tabindex="2" /> </div> </div> </div> <div class="row"> <div class="col-xs-12 col-sm-5 col-md-5"> <div class="form-group"> <label for="txtdob">Date Of Birth</label> <input type="date" name="txtdob" id="txtdob" class="form-control input-lg" tabindex="3" /> </div> </div> <div class="col-xs-12 col-sm-4 col-md-4"> <div class="form-group"> <label for="ddlGender">Gender</label> <select id="ddlGender" name="ddlGender" class="form-control input-lg" tabindex="4"> <option value="0">--Select--</option> <option value="M">Male</option> <option value="F">Female</option> <option value="O">Others</option> </select> </div> </div> <div class="col-xs-12 col-sm-4 col-md-4"> <div class="form-group"> <label for="ddlBgroup">Blood Group</label> <select id="ddlBgroup" name="ddlBgroup" class="form-control input-lg" tabindex="5"> <option value="0">--Select--</option> <option value="A+ve">A +ve</option> <option value="A-ve">A -ve</option> <option value="B+ve">B +ve</option> <option value="B-ve">B -ve</option> <option value="O+ve">O +ve</option> <option value="O-ve">O -ve</option> <option value="AB+ve">AB +ve</option> <option value="AB-ve">AB -ve</option> </select> </div> </div> </div> <div class="form-group"> <label for="txtaddress">Address</label> <textarea name="txtaddress" id="txtaddress" class="form-control input-lg" placeholder="Address" tabindex="6"></textarea> </div> <div class="form-group"> <label for="txtpincode">PinCode</label> <input type="text" name="txtpincode" id="txtpincode" class="form-control input-lg" placeholder="Pincode" tabindex="7" /> </div> <div class="form-group"> <label for="txtemail">Email ID</label> <input type="text" name="txtemail" id="txtemail" class="form-control input-lg" placeholder="Email" tabindex="8" /> </div> <div class="form-group"> <label for="txtmobno">Mobile No</label> <input type="text" name="txtmobno" id="txtmobno" class="form-control input-lg" placeholder="Mobile No" tabindex="9" /> </div> <div class="form-group"> <label for="txtuname">User Name</label> <input type="text" name="txtuname" id="txtuname" class="form-control input-lg" placeholder="User Name" tabindex="10" /> </div> <div class="form-group"> <label for="txtpword">Password</label> <input type="text" name="txtpword" id="txtpword" class="form-control input-lg" placeholder="Password" tabindex="11" /> </div> <div class="form-group"> <label for="txtcpword">Confirm Password</label> <input type="text" name="txtcpword" id="txtcpword" class="form-control input-lg" placeholder="Confirm Password" tabindex="12" /> </div> <div class="row"> <div class="col-xs-3 col-sm-3 col-md-3"> <span class="button-checkbox"> <button type="button" class="btn" data-color="info" tabindex="12">I Agree</button> <input type="checkbox" name="t_and_c" id="t_and_c" class="hidden" value="1"/> </span> </div> <div class="col-xs-9 col-sm-9 col-md-9"> By clicking <strong class="label label-primary">Register</strong>, you agree to the <a href="#" data-toggle="modal" data-target="#t_and_c_m">Terms and Conditions</a> set out by this site, including our Cookie Use. </div> </div> <hr class="colorgraph"> <div class="row"> <div class="col-xs-6 col-md-6"> <input type="submit" value="Register" class="btn btn-primary btn-block btn-lg" tabindex="14"/> </div> <div class="col-xs-6 col-md-6"><a href="Login.aspx" class="btn btn-success btn-block btn-lg">Sign In</a></div> </div> </form> </div> </div> <!-- Modal --> <div class="modal fade" id="t_and_c_m" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" id="myModalLabel">Terms & Conditions</h4> </div> <div class="modal-body"> <p>Your Email ID and Mobile No will be verified by the OTP.</p> <p>Your profile details will be safe and secure with us.</p> </div> <div class="modal-footer"> <button type="button" class="btn btn-primary" data-dismiss="modal">I Agree</button> </div> </div> <!-- /.modal-content --> </div> <!-- /.modal-dialog --> </div> <!-- /.modal --> </div>
.colorgraph { height: 5px; border-top: 0; background: #c4e17f; border-radius: 5px; background-image: -webkit-linear-gradient(left, #c4e17f, #c4e17f 12.5%, #f7fdca 12.5%, #f7fdca 25%, #fecf71 25%, #fecf71 37.5%, #f0776c 37.5%, #f0776c 50%, #db9dbe 50%, #db9dbe 62.5%, #c49cde 62.5%, #c49cde 75%, #669ae1 75%, #669ae1 87.5%, #62c2e4 87.5%, #62c2e4); background-image: -moz-linear-gradient(left, #c4e17f, #c4e17f 12.5%, #f7fdca 12.5%, #f7fdca 25%, #fecf71 25%, #fecf71 37.5%, #f0776c 37.5%, #f0776c 50%, #db9dbe 50%, #db9dbe 62.5%, #c49cde 62.5%, #c49cde 75%, #669ae1 75%, #669ae1 87.5%, #62c2e4 87.5%, #62c2e4); background-image: -o-linear-gradient(left, #c4e17f, #c4e17f 12.5%, #f7fdca 12.5%, #f7fdca 25%, #fecf71 25%, #fecf71 37.5%, #f0776c 37.5%, #f0776c 50%, #db9dbe 50%, #db9dbe 62.5%, #c49cde 62.5%, #c49cde 75%, #669ae1 75%, #669ae1 87.5%, #62c2e4 87.5%, #62c2e4); background-image: linear-gradient(to right, #c4e17f, #c4e17f 12.5%, #f7fdca 12.5%, #f7fdca 25%, #fecf71 25%, #fecf71 37.5%, #f0776c 37.5%, #f0776c 50%, #db9dbe 50%, #db9dbe 62.5%, #c49cde 62.5%, #c49cde 75%, #669ae1 75%, #669ae1 87.5%, #62c2e4 87.5%, #62c2e4); }
$(function () { $('.button-checkbox').each(function () { // Settings var $widget = $(this), $button = $widget.find('button'), $checkbox = $widget.find('input:checkbox'), color = $button.data('color'), settings = { on: { icon: 'glyphicon glyphicon-check' }, off: { icon: 'glyphicon glyphicon-unchecked' } }; // Event Handlers $button.on('click', function () { $checkbox.prop('checked', !$checkbox.is(':checked')); $checkbox.triggerHandler('change'); updateDisplay(); }); $checkbox.on('change', function () { updateDisplay(); }); // Actions function updateDisplay() { var isChecked = $checkbox.is(':checked'); // Set the button's state $button.data('state', (isChecked) ? "on" : "off"); // Set the button's icon $button.find('.state-icon') .removeClass() .addClass('state-icon ' + settings[$button.data('state')].icon); // Update the button's color if (isChecked) { $button .removeClass('btn-default') .addClass('btn-' + color + ' active'); } else { $button .removeClass('btn-' + color + ' active') .addClass('btn-default'); } } // Initialization function init() { updateDisplay(); // Inject the icon if applicable if ($button.find('.state-icon').length == 0) { $button.prepend('<i class="state-icon ' + settings[$button.data('state')].icon + '"></i> '); } } init(); }); });

Related: See More


Questions / Comments: