Newsletter sign-up form with success message

Solution retrospective
I found it difficult to achieve having to click the submit button without causing a refresh so the event listener is set to click there
also im not sure if the javascript is okay for all scenarios (in validations)
i would appreciate any support on how i can make it better
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Preston M'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