Submitted over 1 year agoA solution to the Newsletter sign-up form with success message challenge
Newsletter Sign Up with Success Message
@matt2282

Solution retrospective
What challenges did you encounter, and how did you overcome them?
I had trouble creating the custom error message. I figured out that if I set the type to 'email' in the html form input it would handle the input validation for an email. However, it took some time to figure out how to combine this with JavaScript. By using the "invalid" argument in an event listener for the form input allowed me to do this.
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on matt2282'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