diff --git a/pages/reference.md b/pages/reference.md index ede64ec..f52663f 100644 --- a/pages/reference.md +++ b/pages/reference.md @@ -110,7 +110,7 @@ This used to work by adding `class="cancel"` to the input, this is now deprecate [Demo for the cancel button](https://jqueryvalidation.org/files/demo/errorcontainer-demo.html) # Validation event -By default, forms are validated on submit, triggered by the user clicking the submit button or pressing enter when a form input is focused (option `onsubmit`). In addition, once a field was highlighted as being invalid, it is validated whenever the user types something in the field (option `onkeyup`). When the user enters something invalid into a valid field, it is also validated when the field loses focus (option `onblur`). +By default, forms are validated on submit, triggered by the user clicking the submit button or pressing enter when a form input is focused (option `onsubmit`). In addition, once a field was highlighted as being invalid, it is validated whenever the user types something in the field (option `onkeyup`). When the user enters something invalid into a valid field, it is also validated when the field loses focus (option `onfocusout`). The goal of these interactions is to provide feedback as early as possible, whilst avoiding user annoyance. Displaying error messages before the user had the chance to even type something is not helpful.