bs-validator
v0.4.5
Published
The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
Downloads
3
Maintainers
Readme
BootstrapValidator - v0.4.5
http://bootstrapvalidator.com - The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
Help the project
I've been spending a lot of time to work on this plugin. If it is useful to you, please consider to help the project by making a small donation:
Also, you can make me feel happy by tweeting about it and staring the project on Github.
Live demo
http://bootstrapvalidator.com/examples/
Features
Code
- Written from scratch
- Very solid and clean
- The core plugin and validators code are separated
Bootstrap
- Designed to use with Bootstrap 3
- Support almost Bootstrap forms
- Support Bootstrap form validation states
HTML 5
- Support setting the plugin, validator options via HTML 5 attributes prefixed with
data-bv-
- Support HTML 5 attributes such as
min
,max
,pattern
,required
- Support HTML 5 input types such as
color
,email
,range
andurl
Validator
- 41 built-in validators and counting!
- Easy to write a new validator
Friendly
- Show feedback icons based on field validity
- Support Glyphicons and FontAwesome icons
- Focus on the first invalid field
Ajax
- Support validating via Ajax
- Support using Ajax for form submission
Flexible
- The elements can be defined by either
name
or CSS selector - Support multiple elements with the same name
- Possible to indicate excluded fields
- Field validators can be enabled/disabled on the fly
Compatibility
- Color Picker
- Date Picker, Datetime Picker
- Select2
- Raty
- ... We play nice with all of them!
Required
Download
Latest version: v0.4.5, released on 2014-05-15.
For older versions, look at the Releases page.
Documentation
Release History
Look at the Change Log
Author
The BootstrapValidator plugin is written by Nguyen Huu Phuoc, aka @nghuuphuoc
Big thanks to the contributors:
- @adgrafik
- @easonhan007
- @emilchristensen
- @evilchili
- @Francismori7
- @gercheq
- @henningda
- @ikanedo
- @iplus
- @jswale
- @khangvm53
- @kristian-puccio
- @narutosanjiv
- @patmoore
- @tomByrer
- @vaz
- ... 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
License
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.