A jQuery Validate Unobtrusive extension for Bootstrap 3
Branch: master
Clone or download
Latest commit 22299ad Aug 14, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test/TestValidator
.gitattributes Bug fixes and test project Jul 18, 2014
.gitignore
LICENSE Initial commit Feb 6, 2014
README.md Update README.md Aug 14, 2016
bower.json Added bower manifest file. Aug 14, 2016
jquery.validate.unobtrusive.bootstrap.js
jquery.validate.unobtrusive.bootstrap.min.js
jquery.validate.unobtrusive.bootstrap.min.js.map

README.md

jquery.validate.unobtrusive.bootstrap

A jQuery Validate Unobtrusive extension for Bootstrap 3

If you liked it, buy me a beer!

Click here to lend your support to: jquery.validate.unobtrusive.bootstrap and make a donation at pledgie.com !

Where can I get it?

You can get it on Nuget from the package manager console:

PM> Install-Package jquery.validate.unobtrusive.bootstrap

or on Bower:

$ bower install jquery.validate.unobtrusive.bootstrap

How to use?

Just include the javascript after jquery.validate.unobtrusive and that's it!

<script src="jquery-1.10.2.min.js"></script>
<script src="bootstrap.min.js"></script>
<script src="jquery.validate.min.js"></script>
<script src="jquery.validate.unobtrusive.min.js"></script>
<script src="jquery.validate.unobtrusive.bootstrap.min.js"></script>

Other functions

If your form has dynamic added elements that need validation, you can call .validateBootstrap(true) to rebuild all validations with the new elements included

<script>
  $('form').validateBootstrap(true);
</script>

License

Licensed under the MIT License.