Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

[10 marks] Below is the HIML and CSS for an online form to perform a login. These files are complete and cannot be changed. The

image text in transcribed
[10 marks] Below is the HIML and CSS for an online form to perform a login. These files are complete and cannot be changed. The error text (span with class ="error") is not visible when the form initially loads. When the form fields have valid data, you should hide the errors; otherwise they should be shown. Fach of the three form fields should trigger the event handler. Part A. Write the event handler registration code using the "blur" event. Part B. Write a single JavaScript event handler function that can handle the validation of all three fields. Manipulate the CSS to perform these tasks, do not add or remove DOM or CSS elements The regular expression to detect a text string is /[aZAZ]+$/ The regular expression to detect a date is /d{4}\d{2}d{2}$ The method for testing if a string matches pattern is .test(String object)

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

Students also viewed these Databases questions