Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

A First Course In Probability

Authors: Sheldon Ross

10th Edition

0134753119, 978-0134753119

Students also viewed these Programming questions

Question

List the Holland vocational preferences. AppendixLO1

Answered: 1 week ago

Question

What is a career? AppendixLO1

Answered: 1 week ago