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 with JS validation

Simone 170

@Giulo25

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


I would like to have some feedback about JS and the error status. I have set the error message under each input field in a p element with the hidden class being removed via JS when the field is empty.

I have seen other solutions that add the error message via JS, I wondered if there was a recommended method or if both approaches are acceptable.

Furthermore, is the event handler's logic correct or are there more straightforward methods?

Community feedback

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