"Simple Contact Form"
Bootstrap 3.2.0 Snippet by webdr2004

<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.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="col-md-5"> <div class="form-area"> <form role="form"> <br style="clear:both"> <h3 style="margin-bottom: 25px; text-align: center;">Contact Form</h3> <div class="form-group"> <input type="text" class="form-control" id="name" name="first" placeholder="First Name" required> </div> <div class="form-group"> <input type="text" class="form-control" id="email" name="last" placeholder="Last Name" required> </div> <div class="form-group"> <input type="text" class="form-control" id="mobile" name="uid" placeholder="Username" required> </div> <div class="form-group"> <input type="password" class="form-control" id="subject" name="pwd" placeholder="Password" required> </div> <button type="submit" id="submit" name="submit" class="btn btn-primary pull-right">SIGN UP</button> </form> </div> </div> </div>
.red{ color:red; } .form-area { background-color: #FAFAFA; padding: 10px 40px 60px; margin: 10px 0px 60px; border: 1px solid GREY; }
$(document).ready(function(){ $('#characterLeft').text('140 characters left'); $('#message').keydown(function () { var max = 140; var len = $(this).val().length; if (len >= max) { $('#characterLeft').text('You have reached the limit'); $('#characterLeft').addClass('red'); $('#btnSubmit').addClass('disabled'); } else { var ch = max - len; $('#characterLeft').text(ch + ' characters left'); $('#btnSubmit').removeClass('disabled'); $('#characterLeft').removeClass('red'); } }); });

Related: See More


Questions / Comments: