Design comparison
SolutionDesign
Solution retrospective
I would like to have some feedback about JS and the error status. I have set the error message under each input field in a p element with the hidden class being removed via JS when the field is empty.
I have seen other solutions that add the error message via JS, I wondered if there was a recommended method or if both approaches are acceptable.
Furthermore, is the event handler's logic correct or are there more straightforward methods?
Community feedback
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