# BootstrapValidator A jQuery plugin to validate form fields. Use with Bootstrap 3 ## Features * Built from scratch. The code is solid and clean * Many built-in [validators](#validators) * It is easy to [write new validator](#write-new-validator) ## Required * [jQuery](http://jquery.com/) * [Bootstrap 3](http://getbootstrap.com/) ## Demo You can see the live demo here: * [Sample demo](https://rawgithub.com/nghuuphuoc/bootstrapvalidator/master/demo/index.html) * [Validator examples](https://rawgithub.com/nghuuphuoc/bootstrapvalidator/master/demo/validators.html) * [Custom submit handler](https://rawgithub.com/nghuuphuoc/bootstrapvalidator/master/demo/submitHandler.html) ## Install You can download the [latest version](https://github.com/nghuuphuoc/bootstrapvalidator/releases) or use [bower](http://bower.io) to install BootstrapValidator: ```bash $ bower install bootstrapValidator ``` ## Usage The plugin has two versions: * The source one placed in ```src/js``` directory which is not compressed and doesn't include any validators. It is used in case you want to debug or develop new validator. * The compressed one placed in ```dist/js``` directory which include all validators. It should be used in the production site. Since the bootstrapValidator plugin requires jQuery and Bootstrap 3, you have to include the required CSS and JS files to your page: ```html // Either use the compressed version (recommended in the production site) // Or use the original one with all validators included // Or use the plugin with required validators ``` Call the plugin to validate the form as following: ```javascript $(document).ready(function() { $(