Validating forms using JavaScript

An example that doesn't use the constraint validation API

Example using the constraint validation API