Submodule 8.3: Form validation

8. Exercise

For more information: https://www.w3schools.com/js/js_validation_api.asp

Exercise

    1. Download the folder valid.zip and extract/unzip it in  the folder "yourNameWEB2JS/images". This zip folder includes the valid.png and invalid.png icons.
    2. Open your editor, create a new file and save it as exersice08.3.html in the folder "yourNameWEB2JS".
    3. Copy the following code and paste it into the new file. This code includes everything that we have explained in this module.
    4. Save the file. Is everything ok? You can experiment either with the Javascript or the HTML(e.g add a new form element).

View code: