Using HTML5 form validation features but not actually submitting the form

HTML5 form validation is great. Using an attribute like required or minlength, maxlength, etc., you can validate the form without having to write a single line of JavaScript. However, what if you want to use the validation features but don’t want to actually submit the form? Maybe this is something you would do: The e.preventDefault()…