v0.5.3 is released on 2014.11.05!

Validators

The richest validators in the class

Improve it on Github

BootstrapValidator comes with various built-in validators listed in the alphabetical order as following:

No. Name Description
1 base64 Validate a base64 encoded string
2 between Check if the input value is between (strictly or not) two given numbers
3 callback Return the validity from a callback method
4 choice Check if the number of checked boxes are less or more than a given number
5 color Validate a color in different formats
6 creditCard Validate a credit card number
7 cusip Validate a CUSIP
8 cvv Validate a CVV number
9 date Validate date
10 different Return true if the input value is different with given field's value
11 digits Return true if the value contains only digits
12 ean Validate an EAN (International Article Number)
13 emailAddress Validate an email address
14 file Validate file
15 greaterThan Return true if the value is greater than or equals to given number
16 grid Validate a GRId (Global Release Identifier)
17 hex Validate a hexadecimal number
18 hexColor Validate a hex color
19 iban Validate an International Bank Account Number (IBAN)
20 id Validate identification number
21 identical Check if the value is the same as one of particular field
22 imei Validate an IMEI (International Mobile Station Equipment Identity)
23 imo Validate an IMO (International Maritime Organization)
24 integer Validate an integer number
25 ip Validate an IP address. Support both IPv4 and IPv6
26 isbn Validate an ISBN (International Standard Book Number). Support both ISBN 10 and ISBN 13
27 isin Validate an ISIN (International Securities Identification Number)
28 ismn Validate an ISMN (International Standard Music Number)
29 issn Validate an ISSN (International Standard Serial Number)
30 lessThan Return true if the value is less than or equals to given number
31 mac Validate a MAC address
32 meid Validate a MEID (mobile equipment identifier)
33 notEmpty Check if the value is empty
34 numeric Check if the value is numeric
35 phone Validate a phone number
36 regexp Check if the value matches given Javascript regular expression
37 remote Perform remote checking via Ajax request
38 rtn Validate a RTN (Routing transit number)
39 sedol Validate a SEDOL (Stock Exchange Daily Official List)
40 siren Validate a Siren number
41 siret Validate a Siret number
42 step Check if the value is valid step one
43 stringCase Check if a string is a lower or upper case one
44 stringLength Validate the length of a string
45 uri Validate an URL address
46 uuid Validate an UUID, support v3, v4, v5
47 vat Validate VAT number
48 vin Validate an US VIN (Vehicle Identification Number)
49 zipCode Validate a zip code