programer.tips, another cool thing from @nghuuphuoc!

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