Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Intro Component With Sign Up Form HTML | CSS Grid | JS

@codingkapur

Desktop design screenshot for the Intro component with sign-up form coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

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

Amon 2,560

@A-amon

Posted

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 GitHub
Discord logo

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