Signup form validation with error messages

Solution retrospective
Hi,
For the validation of the form values I have created a container for the icon and error message and set the display to "none". Then, when button is clicked, if the data are invalid, I set the display of that container to "block" Not sure if this is the best way to proceed for this validation
Any other idea? Thanks !
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on SuperJulia2024's solution.
Join 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