Native form validation in browsers
May 26, 2016
Today I stumbled on the DOM APIs `document.forms`, which holds a collection of all the forms on a given page. You can access individual forms, and do things like checking the validity of all its inputs. Super powerful!
Here’s a demo on Codepen:
Hey, I'm Ian. I build websites and write about what I learn as I go. Follow me on Twitter.