Validators

The richest validators in the class

Validators

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

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