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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started