Re:HTML Tips (2020)
by intergalplan on Thursday May 06, 2021 @10:32AM
(#27063852)
Yes! That is definitely a big step in the right direction. It's usually enough to remove at least some of the JS burden on forms. I'm not sure how widespread its use is in practice, though.
Re:HTML Tips (2020)
by wilsonrocks on Thursday May 06, 2021 @02:36AM
(#27059863)
I know it uses JS but the customValidity stuff is pretty cool too!
and the :invalid css option (I like to just make the bottom border red, dashed)
Have you used pattern attributes?
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes...