bootstrap-validate

v2.0.0

A simple Form Validation Utility for Bootstrap 3 and Bootstrap 4 not depending on jQuery.

Download v1 for Bootstrap 3Download v2 (latest) for Bootstrap 4Star on GitHub

Demo Time

HTML:

<div class="form-group">
  <label>See for yourself and enter an email address.</label>
  <input id="docs-demo" class="form-control">
</div>

JavaScript:

bootstrapValidate('#docs-demo', 'email:Enter a valid E-Mail Address!');

Download

The latest version of this library is meant to work for Bootstrap 4. If you are looking for Bootstrap 3, check out our Github for the v1.x versions.

You can grab the latest version from RawGit. You can use it as a CDN as well!

<script src="https://cdn.rawgit.com/PascaleBeier/bootstrap-validate/v2.0.0/dist/bootstrap-validate.js"></script>

Looking for Bootstrap 3?

<script src="https://cdn.rawgit.com/PascaleBeier/bootstrap-validate/1.0.11/dist/bootstrap-validate.js"></script>

Further Reading

Learn how to use bootstrap-validate and its available validation rules.