Skip to content

Commit 0dbfc6c

Browse files
committed
Merge pull request victorjonsson#179 from stevewasiura/patch-5
explanation of validateOnEvent
2 parents c0fb8b6 + 3fa76d5 commit 0dbfc6c

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
@@ -215,6 +215,10 @@ It is possible to display help information for each input. The information will
215215

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

218+
### Validate On Event ###
219+
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.
220+
221+
218222
## Localization
219223
This plugin contains a set of error dialogs. In case you don't define an inline error message the plugin
220224
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)