Submitted 6 months ago
Responsive Newsletter Sign-up Form using HTML, CSS, JS
@bccpadge
Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
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
Community feedback
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