November 2011
Intermediate to advanced
384 pages
13h 23m
English
You can use the new required input attribute to force the user to supply a value in any input field. Supported web browsers will pop up a simple message saying that the field is required if the user attempts to submit a blank value:
<input ... required>
The required attribute, when applied to an input element, activates the require-input feature in the user’s web browser, if supported.
One unfortunate problem with the require-input feature is that if multiple fields are required and missing a value, only the first one will receive the pop-up notification error. The user will need to correct the first problem and submit the form again before being notified of the second error.
To sidestep this issue, simply ...
Read now
Unlock full access