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 both the folder "exercises/images" and in the folder "chocolate/images". This zip folder includes the valid.png and invalid.png icons.
    2. Open your editor, create a new file and save it as exersice09.3.html in the folder "Exercises".
    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: