Submodule 8.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 the folder "yourNameWEB2JS/images". This zip folder includes the valid.png and invalid.png icons.
- Open your editor, create a new file and save it as
exersice08.3.html
in the folder "yourNameWEB2JS". - 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).