DEV Community

Discussion on: Vanilla JavaScript get all elements in a form

 
dailydevtips1 profile image
Chris Bongers

Ah pretty cool I would indeed opt for custom validation since designers love inline validation or some custom view to it.

Pretty neat however we can use it to set custom validation as well!
Going to spend some time on this and see what I can find out about this validation API and custom errors.

Thread Thread
 
dailydevtips1 profile image
Chris Bongers

Just found this explanation:
css-tricks.com/form-validation-par...

Just looking at the last description he still uses the javascript method to get all the forms elements.
Just trying to say even with the validation API it still seems to have it's use-cases to get all a form's elements?