
Submitted over 1 year ago
Newsletter sign-up form with success message using HTML,SCSS & JS.
#sass/scss
@ps1089
Design comparison
SolutionDesign
Solution retrospective
Feedbacks are welcome, Any tips for better JS code for interactive elements.
Community feedback
- @danielashjariPosted 29 days ago
eventhough i didnt enter my email it showed me the success message you can check the value of email using this
const isValidEmail = (email) => { const re = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; return re.test(String(email).toLowerCase()); };
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