Question: a. Write the JavaScript function to validate the Mobile No as per the instructions given below: a. Function name: phonenumber b. The function must have

 a. Write the JavaScript function to validate the Mobile No as
a. Write the JavaScript function to validate the Mobile No as per the instructions given below:

a. Function name: phonenumber

b. The function must have a parameter to pass the mobile no input value.

c. Validation: Mobile No. must contain only 8 digits.

d. The function must display alert messages as follows:

If the validation is successful, Valid Oman Mobile Phone Number

If the validation fails, Invalid Oman Mobile Phone Number.

b. Write the JavaScript function to validate the Full Name as per the instructions given below:

a. Function name: checkAlphabet

b. The function must have a parameter to pass the full name input value.

c. Validation: The full name must contain only alphabetic characters.

d. The function must display alert messages as follows:

If the validation is successful, Successfully Registered

If the validation fails, NON Alphabetic characters are NOT allowed

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!