Skip to content

Commit 96a1fc3

Browse files
committed
add note on custom error msg container
1 parent 1b99b52 commit 96a1fc3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,14 @@ var enErrorDialogs = {
268268
</script>
269269
...
270270
```
271+
### Input Specific Error Messages ###
272+
It's also possible to override the default validation error message. If you add the attribute `data-validation-error-msg` to a form input element, the value of
273+
that attribute will be used as the validation error message.
274+
275+
### Input Specific Error Message Container ###
276+
It's also possible to use a separate container (div, etc) to hold a specific error message for a specific form input element. A text input with `name=profilephoto` can have a separate container with `id=profilephoto_errMsgContainer`.
277+
The default value of this suffix `errMsgContainer` is defined in the default config, and can be overwritten to fit your nomenclature preferences.
271278

272-
It's also possible to add inline error messages. If you add attribute `data-validation-error-msg` to an element the value of
273-
that attribute will be displayed instead of the error dialog that the validation function refers to.
274279

275280
## Input length restriction
276281
```html

0 commit comments

Comments
 (0)