Question 4 Use JavaScript to validate the cell phone number and emailaddress entered by a user. The
Fantastic news! We've Found the answer you've been seeking!
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: “+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.
Posted Date: