• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Checking that all required fields have been filled in

Checking that all required fields have been filled in

Because you can’t be sure that all browsers recognize the HTML5 required attribute, it’s a good idea to check that required fields aren’t blank before submitting the form.

If any fields are missing, you can dynamically add a warning message to the form, highlight the affected fields, and prevent the form from being submitted.


You are currently reading a FREE PREVIEW of this book.

Sign-up to get instant access to over
$1 million worth of books and videos.

Start a Free Trial