@rub1906Submitted about 1 year ago
Damien
@CtrlAltSudoAll comments
- @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