Question: This week you will need to build a simple form. This exercise will combine our HTML skills and JavaScript skills. The form will consists of

This week you will need to build a simple form. This exercise will combine our HTML skills and JavaScript skills.

The form will consists of the following:

1.a text box where an individual's UCID can be type in

2.a submit button which the user will click to activate a JS script that will validate the input.

The script will test the input against a pattern (RegEx must be used) and if it meets the criteria you will then need to verify the UCID against a list of valid IDs that you create if the UCID is valid but not verifiable you will output "VALID UCID FORMAT BUT INVALID UCID". If the UCID is valid and verifiable you will output "VALID UCID FORMAT AND UCIID FOUND" and if not it will output "UCID DOES NOT CONFORM TO VALID FORMAT".

The UCID pattern is as follows:

a sequence of letters followed by zero to three digits

The input element in the form should have the following attributes:

1.type

2.id

3.name

4.placeholder

5.title (this attribute will output a message when the you mouseover the text box. In our case it will be the requirements for a valid UCID)

* As per the instructions I was able to get it done by getting a valid format but not a verifiable UCID.

*Also I need an object/array that contains valid and verifiable UCIDs which will give me output " VALID UCID FORMAT AND UCID FOUND.

*I will appreciate it very much if this is solved

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!