bootstrap-validate

v2.2.6

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

JavaScript:

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

HTML:

<div class="form-group">
  <input id="docs-demo" class="form-control">
</div>

Download

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

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

Looking for Bootstrap 3?

You can find older Releases in our Download Section

Further Reading

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