"This field is required" (You can't leave this field blank). JavaScript provides a way to validate form's data on the client's computer before sending it to the web server. Viewed 820k times 345. Usually both values are either set to true or not set (same as false). Once you have the elements, you can check the type of each element and accordingly get their attributes and values. A DOMString reflecting the value of the form's nameHTML attribute, containing the name of the form. The