New Features

HTML 5 attribute Equivalent validator Equivalent HTML attribute
min="..." greaterThan validator
data-bv-greaterthan="true"
data-bv-greaterthan-value="..."
max="..." lessThan validator
data-bv-lessthan="true"
data-bv-lessthan-value="..."
maxlength="..." stringLength validator
data-bv-stringlength="true"
data-bv-stringlength-max="..."
pattern="..." regexp validator
data-bv-regexp="true"
data-bv-regexp-regexp="..."
required notEmpty validator data-bv-notempty="true"
type="color" hexColor validator data-bv-hexcolor="true"
type="email" emailAddress validator data-bv-emailaddress="true"
type="range"
min="..."
max="..."
between validator
data-bv-between="true"
data-bv-between-min="..."
data-bv-between-max="..."
type="url" uri validator data-bv-uri="true"

Changes

Improvements

  • #133: The regexp validator allows to pass a string
  • #136: Support multiple elements with the same name
  • #140: Do not validate hidden (type="hidden") and invisible element, thanks to @easonhan007

Bug Fixes

  • #126: Submit button remains disabled after calling custom submitHandler and the form is valid
  • #132: The fields.[fieldName].message option is not used when showing the error message

Contributors

Thank to the contributors:

Download

Comments

If you want to report a bug, please submit the issue on Github. Do NOT post the issue here.

For a general question or feedback, use the form below.