Submitted almost 3 years ago
Landing Page + Email Validation using HTML CSS & JS
@ArbonaJulien
Design comparison
SolutionDesign
Solution retrospective
I will really appreciate any feedback and optimization or best practices. Thanks.
Community feedback
- @FrancisKhaledKhodjaPosted almost 3 years ago
Hello. Well done with your responsive web page. I like your attempt to submit the email but i think your script doesn't work. According to me you can simplify it. For instance, your validationEmail function can become :
function validationEmail(email) { let regex = new RegExp('[a-z0-9]+@[a-z]+\.[a-z]{2,3}'); return regex.test(email); }
Marked as helpful0@ArbonaJulienPosted almost 3 years ago@FrancisKhaledKhodja yes, i forgot to move the event.preventDefault() after testing. thanks for the minimized syntax of the function it's obvious.
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