Submodule 9.3: Form validation
8. Exercise
For more information: https://www.w3schools.com/js/js_validation_api.asp
Exercise
- 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.
- Open your editor, create a new file and save it as
exersice09.3.html
in the folder "Exercises". - Copy the following code and paste it into the new file. This code includes everything that we have explained in this module.
- Save the file. Is everything ok? You can experiment either with the Javascript or the HTML(e.g add a new form element).