Professional Documents
Culture Documents
WEB DEVELOPMENT 2B Assignment 2 - 2023
WEB DEVELOPMENT 2B Assignment 2 - 2023
© Damelin
ASSIGNMENT
List and explain seven Java Script events. Give an example where possible.
© Damelin
Question 3 (25 marks)
Create a form that collects the first name, last name, email, user id, password and confirm password from
the user. All the inputs are mandatory and email address entered should be in correct format. Also, the
values entered in the password and confirm password textboxes should be the same. After validating using
JavaScript, display proper error messages in red color just next to the textbox where there is an error.
When the program is run the first time the following displays:
When the “Add a new box button” is clicked the following displays:
© Damelin
When the button is clicked any number of times, the number of clicks is printed in the text box followed by
the display of an equivalent number of boxes. See picture below:
When the edit (found on the upper left-hand corner of the box) is clicked an alert is displayed as shown
below. Any new text typed into the alert textbox replaces the “New Form” in any of the boxes.
© Damelin