Submitted about 1 year ago
Newsletter-Sign-Up using vanilla HTML-CSS-JS with email validation
@rub1906
Design comparison
SolutionDesign
Community feedback
- @CtrlAltSudoPosted about 1 year ago
Hi!
Great work! This may be a personal preference but I chose to use input as the event listener on the input form rather than click on the submit button, this way an invalid email error is shown to the user before they click submit.
MDN doc on input listener: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event
Demo of my version here: https://ctrlaltsudo.github.io/Newsletter-sign-up-form-with-success-message/
Marked as helpful0@rub1906Posted about 1 year ago@CtrlAltSudo Thank you so much, I'll try implementing it soon
0
Please log in to post a comment
Log in with GitHubJoin 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