August 2024
Intermediate to advanced
186 pages
4h 3m
English
Some input validation must be performed on the server. For example, when validating the setup of a new user that’s identified by their email address, it’s common to verify that the provided email address isn’t already in use by an existing user. This can be done as the user types instead of waiting for the form to be submitted.
The following HTML validates an email address as it’s typed. A GET request is sent to the /email-validate endpoints when a keyup event occurs.
The changed modifier states that a request should only be sent if the value of the input has changed. An example of a keyup event that doesn’t change the value is using the arrow keys to move the cursor within the input.
The delay modifier states ...
Read now
Unlock full access