Question: 110 marks] Below is the HTML and CSS for an online form to perform a login. These files are complete and cannot be changed. The


110 marks] Below is the HTML and CSS for an online form to perform a login. These files are complete and cannot be changed. The error text (span with clanse"error") is not visible when the form initially loods. When the form fields have valid data, you should hide the errory otherwise they should be shown. Each. of the three fom fields should trigger the event handles. 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 fo perform these tasks, do not add or remove DOM ar CSS elements. The regular expression to defect a text string is /(a24Z]+S/ The regular expression to detect a dote is / A 1d{41d2=1d2j5/ The method for testing if a string matches pattern is .test(String object) indexchtml ibility: hidden
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
