http://bootstrapvalidator.com - A jQuery plugin to validate form fields. Use with Bootstrap 3
- Built from scratch. The code is solid and clean
- 25 built-in validators and counting!
- Cannot find the validator you need? Don't worry, it is easy to write new validator
- Show feedback icons based on field validity
- Support Ajax in both validator and form submission
- Field validators can be enabled/disabled on the fly
- Can be used with other plugins such as Date Picker, Datetime Picker, Select2, Raty etc.
You can see the live demo here:
- Sample demo
- Validator examples
- Custom submit handler
- Enable/disable validators on the fly
- Use with a datetime picker plugin
Look at the Change Log
The BootstrapValidator plugin is written by Nguyen Huu Phuoc, aka @nghuuphuoc
Big thanks to the contributors:
- @adgrafik
- @easonhan007
- @emilchristensen
- @gercheq
- @khangvm53
- @kristian-puccio
- @ikanedo
- @iplus
- @jswale
- @narutosanjiv
- @patmoore
- @vaz
- @tomByrer
- ... might be you! Let's fork and pull a request!
If you submit new RegEx, please build it using RegExr.com, add several tests that pass and fail there, and include the "share" link in your JS as a
//
comment. For example:// Test: http://regexr.com/38mqi
The MIT License (MIT)
Copyright (c) 2013 - 2014 Nguyen Huu Phuoc
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.