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

responsive newsletter

@nina1234567896

Desktop design screenshot for the Newsletter sign-up form with success message coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

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

@WDWaleed

Posted

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

0

@nina1234567896

Posted

@WDWaleed Thankyou =) . Does an error message appear when you type in an invalid email on my project?

0
temo1203 150

@temo1203

Posted

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

@nina1234567896

Posted

@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 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