Interactive examples for every built-in validation rule.
Sign-up form covering required, email, minlength, and equalTo.
Ensures a field has a non-empty value after trimming whitespace.
RuleValidates that the value is a properly formatted email address.
RuleValidates that the value is a properly formatted URL.
RuleValidates that the value can be parsed as a valid date.
RuleValidates ISO-like date format: YYYY-MM-DD or YYYY/MM/DD.
Constrains the number of characters allowed in a field.
RuleValidates a field against a regular expression.
RuleConfirms two fields have the same value (e.g. password confirmation).
RuleAccepts only numeric digit characters (0–9).
RuleValidates that a numeric value falls between a minimum and maximum using range: [min, max].
Validates that the value is a properly formatted IPv4 address (e.g. 192.168.1.1).
Validates that the value is a properly formatted IPv6 address (e.g. 2001:db8::1).
Accepts only letters, digits, and underscores — no spaces or special characters.
AdvancedExtend the validator with your own rules using addMethod().
Declare rules directly in HTML using data-rule-* and data-msg-* attributes.