nos-forms-jquery
Version:
Build and validate DRY html forms in minutes with JSON, jQuery and Bootstrap
18 lines (14 loc) • 551 B
Markdown
Override the default validation messages for individual elements.
```javascript
"messages": {
"required": "[field name] is a required field",
"invalid": "[field name] must be valid",
"minlength": "[field name] must have a minimum of [minlength] characters",
"maxlength": "[field name] must have a maximum of [maxlength] characters",
"min": "[field name] must have a minimum value of [min]",
"max": "[field name] must have a maximum value of [max]"
}
```