Skip to content
A jQuery Validate Unobtrusive extension for Bootstrap 3
JavaScript C# CSS ASP
Find file
Latest commit 46de2a6 @sandrocaseiro Bug fixes
Fixes highlight for fields without validation message span

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

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.

Something went wrong with that request. Please try again.