Skip to content

Commit 3fa76d5

Browse files
committed
explanation of validateOnEvent
1 parent 1b99b52 commit 3fa76d5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,10 @@ It is possible to display help information for each input. The information will
214214

215215
Read about how to customize this plugin over at [http://formvalidator.net/#configuration](http://formvalidator.net/#configuration)
216216

217+
### Validate On Event ###
218+
You can cause an element to be validated upon the firing of an event, by attaching an attribute to the form input element named `data-validation-event="click"`. When the configuration settings have `validateOnEvent : true`, the click event will trigger the onBlur validaton for that element. Possible use case: Checkboxes. Instead of waiting for the checkbox to lose focus (blur) and waiting for a validation to occurr, you can specify that elements validation should occur as soon as that checkbox element is clicked.
219+
220+
217221
## Localization
218222
This plugin contains a set of error dialogs. In case you don't define an inline error message the plugin
219223
will fall back on one of the dialogs below. You can how ever add the attribute *data-validation-error-msg* to an

0 commit comments

Comments
 (0)