Responsive newsletter subscription

Solution retrospective
Challenge 1: The error message didn't disappear when users tried to correct their input. The validation feedback remained visible even after users started typing in the email field.
Solution: I implemented an input event listener to dynamically clear error states when users begin typing.
Challenge 2: The browser's built-in HTML5 email validation was interfering with my custom validation logic and preventing my error messages from appearing.
Solution: I disabled the default validation by adding the noValidate property to the form using: form.noValidate = true;
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Amen'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