Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Beginning Apache Cassandra Development

Authors: Vivek Mishra

1st Edition

1484201426, 9781484201428

More Books

Students also viewed these Databases questions

Question

=+What is the nature of the plant or site-level role of unions?

Answered: 1 week ago