Intro Component With Sign Up Form HTML | CSS Grid | JS
Design comparison
Solution retrospective
Although any and all feedback is welcome, I would love to have you look at my JavaScript code and get feedback on how to make it DRY friendly.
Thanks a bunch and the code is the ode. Sing it!
Community feedback
- @A-amonPosted over 3 years ago
Hey, it would be neater if you use form to wrap up the input elements instead of a div. Then, add novalidate to the form tag so that you can disable the default validation error message. As for modifying the css of error messages via javascript, it's better to just modifying class name instead of the style directly. For example, instead of setting the style property, you can assign a class named .has--error.
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