Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

html,css,flexbox, javascript

@Meetkamal256

Desktop design screenshot for the Intro component with sign-up form coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


there is an error in my javascript code that prevents my email addresses to be validated correctly, i couldn't figure out the error pls assist in fixing this issue.

Community feedback

@freaky4wrld

Posted

Hey there, buddy the regex you are using in your isvalid() function should be changed to this const re = /^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})$/, I think maybe that will do the trick for you, I'm not some regex master as well, refer to this article for details

Also I would recommend to validate this whole form using the built in js-validation API, that will be apt to look into at this phase of learning, trust me I'm also trying to be efficient with it, here's the link to it........

I hope it solves your problem buddy..............

Keep learning and coding

Marked as helpful

1

@Meetkamal256

Posted

@freaky4wrld thanks a lot bro

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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