From e79347b64c751b20aa86e98fd62ad0cf394ace56 Mon Sep 17 00:00:00 2001 From: sparky672 Date: Tue, 9 May 2017 09:03:16 -0500 Subject: [PATCH 1/2] Update reference.md The `onfocusout` option was improperly called `onblur` --- pages/reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/reference.md b/pages/reference.md index 3cde9e7..088748e 100644 --- a/pages/reference.md +++ b/pages/reference.md @@ -103,7 +103,7 @@ This used to work by adding `class="cancel"` to the input, this is now deprecate [Demo for the cancel button](http://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. From 93bdfa896b144dbe456884c3a1a432aca3346b27 Mon Sep 17 00:00:00 2001 From: sparky672 Date: Tue, 9 May 2017 09:41:58 -0500 Subject: [PATCH 2/2] Update reference.md --- pages/reference.md | 1 - 1 file changed, 1 deletion(-) diff --git a/pages/reference.md b/pages/reference.md index 3190b98..f52663f 100644 --- a/pages/reference.md +++ b/pages/reference.md @@ -110,7 +110,6 @@ 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 `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.