Responsive Newsletter Sign-up Form using HTML, CSS, JS

Solution retrospective
I am most proud of using the template tag again.
What challenges did you encounter, and how did you overcome them?I had issue with accessing the the dismiss button in the template tag.
When I console.log
the button I would get null.
In my index.html
file placed a data attribute of [data-js-reset]
on the button.
Dismiss message
I created returnToForm function in JavaScript.
// return to the Newsletter form
function returnToForm(e) {
if (e.target.hasAttribute("data-js-reset")) {
location.reload();
}
}
What specific areas of your project would you like help with?
N/A
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Rebecca Padgett's solution.
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