Your current filters are…
Finally, we can add validation rules to our form elements, which provides in-browser validation on submit. But what if we want to use Ajax?
HTML5 defines DOM interfaces with the components we need to validate the form ourselves. It's easy and fun!