Search for question
Question

7.3C: Form Validation

Tasks

You are required to complete a simple form where the user can input a number of fields, simulating a page where a student could register for help on a given unit.

The form should ask for 4 separate fields, as shown in the figure below.

Write a javascript function that allows the data entered by the user to be validated, and where there is an error (the user has input data in an incorrect format) the form should be updated showing the correct format.

What will you submit?

You should submit:

Screenshots (similar to the above examples) of the web page.

• HTML file of the web page with JavaScript.

Fig: 1

Fig: 2

Fig: 3

Fig: 4