Design comparison
Solution retrospective
TIL that using plain CSS to have custom form validation is very hard. I finally found a way to have the error message appear only if an invalid value is shown, but I couldn't make so that empty value is considered incorrect either. Is there any reliable way to do this without JS? Or should I bite the bullet and go the JS route?
Community feedback
- @adarshcodesPosted almost 4 years ago
Hi @brenodt, I also only know about the
invalid
way using CSS only😅, I would recommend you the JS way because you'll have full control over it. BTW, your solution looks amazing, great work here👏. Happy Coding😀2@brenodtPosted almost 4 years ago@adarshcodes Thanks for the feedback, man! Yeah, I feared that would be the case hahaha 😅. No worries though, I'll try my hand doing this same challenge with JS - I'm certain it's going to be a lot easier.
1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord