Question: JavaScript validation/code Form Validation: In this assignment there will be 5 things to validate: 1- Validate that the names are filled in, first and last

JavaScript validation/code

Form Validation:

In this assignment there will be 5 things to validate:

1- Validate that the names are filled in, first and last name

2- Validate that they are letters, upper case and lower case. (You can use /^[a-zA-Z]+$/ as the regular expression)

3- Check to make sure the phone number is all numbers. (You can use /^[0-9]+$/ as the regular expression)

4- If they are updating the form make sure the form is filled out completely.

5- If they are creating a new record make sure they filled the form out completely.

If any of these fields are not met then the form will produce an alert and let them know what they are missing.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!