min
Require a given minimum character count.
bootstrapValidate('#input', 'min:20:Enter at least 20 characters!')
Use these rules as the second argument to bootstrapValidate().
Empty optional fields pass non-required rules in v2.3.0 and later.
Require a given minimum character count.
bootstrapValidate('#input', 'min:20:Enter at least 20 characters!')Maximum character count required.
bootstrapValidate('#input', 'max:42:Please dont enter more than 42 characters!')Require a valid E-Mail Address.
bootstrapValidate('#input', 'email:Enter a valid email address')Require a field to be filled out.
bootstrapValidate('#input', 'required:Please fill out this field!')Require a valid URL.
bootstrapValidate('#input', 'url:Please enter a valid URL!')Require a valid integer.
bootstrapValidate('#input', 'integer:Please fill out this input field!')Require a valid numeric input.
bootstrapValidate('#input', 'numeric:Please only enter numeric characters!')Require alphanumeric input, e.g. 0-9 and a-Z.
bootstrapValidate('#input', 'alphanum:Please only enter alphanumeric characters!')Validate user input against ISO 8601 Format.
bootstrapValidate('#input', 'ISO8601:Your input does not match the wanted format YYYY-MM-DD')Test a Regular Expression against an input value
bootstrapValidate('#input', 'regex:^[a-z]+$:Please fulfill my regex')Test if input number can be divided by given number and the result is an exact whole number.
bootstrapValidate('#input', 'divisible:15:15 is not divisible by 4.')Require the input to contain a given string.
bootstrapValidate('#input', 'contains:something:Your text needs to contain something!')Require the input value to start with a given string.
bootstrapValidate('#input', 'startsWith:+49:Your phone number needs to start with +49')Require the input value to end with a given string.
bootstrapValidate('#input', 'endsWith:UCV:Your Input needs to end with UCV')Require the input value to match the given inputs value. Like bootstrapValidate's first Parameter, you can pass a selector or Element.
bootstrapValidate('#input', 'matches:#passwordConfirm:Your passwords should match')Validate only alphabetic characters - a-z, A-Z.
bootstrapValidate('#input', 'alpha:You can only input alphabetic characters')Validate if user input is in given array. Similar to contains, but with an array.
bootstrapValidate('#input', 'inArray:(ABC, DEF, GHI):Your input must be any of (ABC, DEF, GHI)')Require a field unless another field already has a value.
bootstrapValidate('#input', 'requiredUnless:#secondaryEmail:Enter at least one email address')Require Latin letters, accented Latin letters, spaces, apostrophes, and hyphens.
bootstrapValidate('#input', 'text:Enter letters only')Require a numeric value between two inclusive bounds.
bootstrapValidate('#input', 'between:18:65:Enter a number between 18 and 65')