Newsletter sign-up form with success message solution

Please log in to post a comment
Log in with GitHubCommunity feedback
- P@Aminpatra
yo bro, your design looks good, but you can just add e.preventDefault() in the submit event to prevent the form from going to the next page before checking if the email is valid or not, you can see my code for more clarification.
Marked as helpful
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