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.
Community feedback
- @WDWaleedPosted about 1 year ago
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 helpful0@nina1234567896Posted about 1 year ago@WDWaleed Thankyou =) . Does an error message appear when you type in an invalid email on my project?
0 - @temo1203Posted about 1 year ago
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
0@nina1234567896Posted about 1 year ago@temo1203 Thats odd because when there is an error in the input box i get an error message. You mean when you type in a wrong email the error message doesnt show?
0
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