Question: Consider the following code snippet. Create a JavaScript function entitled validateForm to validate that text has been entered for both first and last name and
Consider the following code snippet. Create a JavaScript function entitled validateForm to validate that text has been entered for both first and last name and that the user is 21 or older. If no text is entered and/or the user is not 21 or over you should display an error message (this can be a popup or a message written in the div provided) and do not submit the form to the action page.
First Name: Last Name: Age:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
