Submitted about 1 year ago
newsletter-sign-up-with-success-message-main
@Faress-MoHamed
Design comparison
SolutionDesign
Community feedback
- @RamssCRPosted about 1 year ago
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 helpful1
Please log in to post a comment
Log in with GitHubJoin 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