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!')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')