JavaScript Form Validation

The last form checks if the name field is empty as well, and if the second field contains at least 10 digits for the phone number (using a regular expression to remove any non-digit character). Again, an error message is displayed into the page if something is invalid.

Please fill the form.

Back