Question: Question 4 Use JavaScript to validate the cell phone number and emailaddress entered by a user. The cell phone number must be in thefollowing format:

Question 4

Use JavaScript to validate the cell phone number and emailaddress entered by a user. The cell phone number must be in thefollowing format: “+27 (12) 345-6789”. The email address must haveat least four (4) characters before the “@” sign and must end with“eduvos.com”.

When the form is loaded, all the textboxes must begrey. If a textbox is left empty (or skipped), use the colour redto provide a visual reminder that a value must be entered intoit.

If either the cell phone number or email address entered by theuser is not in the correct format as specified by the JavaScriptcreated in Question 4a, the colour of the textbox should bechanged.

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 Programming Questions!