Skip to content

The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3

Notifications You must be signed in to change notification settings

aca02djr/bootstrapvalidator

 
 

Repository files navigation

BootstrapValidator - v0.4.5

http://bootstrapvalidator.com - The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3

Screenshot

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:

Click here to lend your support to: BootstrapValidator and make a donation at pledgie.com!

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

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 and url

Validator

Friendly

  • Show feedback icons based on field validity
  • Support Glyphicons and FontAwesome icons
  • Focus on the first invalid field
  • Don't validate the field if the field length is less than given number using threshold option
  • #164: Possible to show all error messages in given container
  • #175: Possible to use Bootstrap tooltip and popover to show error messages

Ajax

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
  • #125: Support dynamic field

Compatibility

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:

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.

About

The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.6%
  • PHP 1.4%