Newsletter sign up form with TailwindCSS

Solution retrospective
Tailwind CSS is nice!
What specific areas of your project would you like help with?Any advice is welcome!
Please log in to post a comment
Log in with GitHubCommunity feedback
- @MarziaJalili
Tempting! 👏👏👏
✅ One tiny amendment though; When the user tries again filling the form, it would be better to notify them as soon as the value became valid using the
input
event listener.Basically what you're required to do, bro is to listen to every keystroke on the input element and check whether the value is valid or not.
Here is an example:
input.addEventListener("input", () = { console.log("value changed...") })
This will log the string with every keystroke. And by putting the conditions it will remove the error states as will.
😎😎😎
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