
Design comparison
Solution retrospective
Dear coders!, I would love to know how to you guys write your js when it comes to client-side form validation.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @WDWaleed
For validation, I create a function that is executed when the form is submitted.
It will set the display of the error message to block if the input is invalid else it shows the success message
Marked as helpful - @temo1203
in my code i done like that if email is valid 1 box should be showing up with value same as yours but for some reason in your code value doesnot come up
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