Skip to content

Commit bda9cab

Browse files
authored
Fixed typo
Kudos to sparky672
1 parent be7e8f5 commit bda9cab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ This used to work by adding `class="cancel"` to the input, this is now deprecate
110110
[Demo for the cancel button](https://jqueryvalidation.org/files/demo/errorcontainer-demo.html)
111111

112112
# Validation event
113-
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`).
113+
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`).
114114

115115
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.
116116

0 commit comments

Comments
 (0)