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
Request path contains unescaped characters
Not Found
Not Found
Not Found

Submitted

newsletter sign up JavaScript challenge

@Alleared

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


This is my third javascript challenge. I'm learning a lot of the logic needed to write code. Any tips on how to write documentation properly, and what is the right way to show a new page within a page? Like in this challenge. Until now, I was generating new HTML in Javascript, is that the best practice?

Community feedback

P
K01wfd 690

@K01wfd

Posted

Hi @Alleared, one way to show dynamic content, use individuale section and throw display none on it, then change the display property using Javascript. Your implementation it's ok for a small proeject like this one, anyway it will soon become overwhelming when the project grows, that's why there are many libraries and tools to help with this like React.

Marked as helpful

2
Ryoshi1001 140

@Ryoshi1001

Posted

Hope can be good form made is very good not easy making many new things. Wanted to just add something me found if want to add to form made. The email input element has border can be erased with border outline none and the email on thank you modal should be same as emailinput.value thank you take care gn gm frens

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