Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
18
Comments
1
Damien
@CtrlAltSudo

All comments

  • Andrea•60
    @rub1906
    Submitted almost 2 years ago

    Newsletter-Sign-Up using vanilla HTML-CSS-JS with email validation

    #accessibility#foundation
    1
    Damien•250
    @CtrlAltSudo
    Posted almost 2 years 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 helpful
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub