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

newsletter-sign-up-with-success-message-main

@Faress-MoHamed

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

Community feedback

RamssC 260

@RamssCR

Posted

After typing the email and clicking the button, I see the email used as example but not the one I typed. A good solution for that would be:

const input = document.querySelector(".input")
const placeWhereTheEmailGoes = document.querySelector(".place")

/* code */

1. placeWhereTheEmailGoes.textContent = input.value
2. placeWhereTheEmailGoes.innerHTML = input.value
3. placeWhereTheEmailGoes.innerText = input.value

Hope it works, nice job, tho.

Marked as helpful

1

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