Validating forms using JavaScript

Example using the constraint validation API

An example that doesn't use the constraint validation API