2 ms·
You can do a lot with setCustomValidity to improve error messages while still using the rest of the HTML5 validation API.
by unilynx 6y ago
You can do a lot with setCustomValidity to improve error messages while still using the rest of the HTML5 validation API.
- jeroenhd 6y agoYou're totally right, but the Firefox popover indicating what's going wrong doesn't go with some of the designs I make. On a bootstrap-based design I much prefer bootstrap-style error messages which are easy to do with Javascript, and the same is true for Material-based designs. I do think that people generally overlook the built-in form validation though, and I like to use them as a fallback for Javascriptless environments to ensure everyone can get proper validation.