Bootstrap provides user friendly and powerful mechanism for styling input controls presenting different validation states. Bootstrap includes validation styles for error, warning, and success messages. To utilize, just add the correct class to the surrounding
Will there be a bit of good plugin to validate bootstrap forms? Or else, suggest links where I will get code validating them.
.form-group
.Will there be a bit of good plugin to validate bootstrap forms? Or else, suggest links where I will get code validating them.
There are a lot of options out there:
Example Code :
Use of html
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">
<div class="panel panel-primary">
<div class="panel-heading">Have A Query ? Fill The Form Below & Get A Call From Our Counsellors Now !</div>
<div class="panel-body">
<form name="form1" id="form1" method="post" class="form-horizontal" action="#" novalidate="novalidate">
<div class="form-group">
<label class=" col-md-3 control-label" for="name">Name</label>
<div class="col-md-8"><input type="text" name="name" id="name" class="form-control"></div>
</div>
<div class="form-group">
<label class="col-md-3 control-label" for="email">E-mail</label>
<div class="col-md-8"><input type="text" name="email" id="email" class="form-control"></div>
</div>
<div class="form-group">
<label class="col-md-3 control-label" for="mobile">Mobile</label>
<div class="col-md-8"><input type="text" name="mobile" id="mobile" class="form-control"></div>
</div>
<div class="form-group">
<label class="col-md-3 control-label" for="city">City</label>
<div class="col-md-8"><input type="text" name="city" id="city" class="form-control"></div>
</div>
<div class="form-group">
<label class="col-md-3 control-label" for="course">Course</label>
<div class="col-md-8 selectContainer">
<select name="course" class="form-control">
<option value="" selected="">----Select Course----</option>
<option value="Mobile Repairing Course">Mobile Repairing Course</option>
<option value="Advance Mobile Repairing Course">Advance Mobile Repairing Course</option>
<option value="Laptop Repairing Course">Laptop Repairing Course</option>
<option value="Advance Laptop Repairing Course">Advance Laptop Repairing Course</option>
</select>
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-5"><input type="submit" value="Submit" name="btnsend" class="btn btn-primary"></div>
</div>
</form>
</div>
</div>
</div>
Use of css
- bootstrap.min.css
- bootstrapValidator.min.css
Use of js
- bootstrapValidator.min.js
- jquery.form.min.js
- jquery-1.7.1.min.js
Use of img
- checked.gif
- error.png
- valid.png
The output of example will look something like this :
Bootstrap includes support for several standard form controls as well as new HTML5 input types such as datetime, number, email, url, search, tel, color etc. These example will show you the usages of standard form controls with Bootstrap.