Playing with HTML 5 input types and attributes
← ejemplos
FormValidation supports a few of HTML 5 types, attributes listed as following:
HTML 5 attribute | Equivalent validator | Equivalent HTML attribute |
---|---|---|
min="..." |
greaterThan validator | |
max="..." |
lessThan validator | |
maxlength="..." , minlength="..." |
stringLength validator | |
pattern="..." |
regexp validator | |
required |
notEmpty validator | data-fv-notempty="true" |
type="color" |
color validator | data-fv-hexcolor="true" |
type="email" |
emailAddress validator | data-fv-emailaddress="true" |
between validator | ||
type="url" |
uri validator | data-fv-uri="true" |