ValidForm is a thin JavaScript wrapper around the HTML5 Form Validation features. Check out the code →
Submit these forms with no input, then mess with the input to get a feel for how they behave.