Design comparison
Solution retrospective
Here's my attempt with form validation. Styling is a bit off but the main focus was the js side. All feedback is welcome! Let me know if there is anything that needs to be changed or removed.
Community feedback
- @bramuccciPosted about 3 years ago
Hi Louie! Your form only checks if the input has any value, so if I type something like a space it will be considered valid. This in the real life has no sense. Also, you use the html email validation which it's no secure because the users can modify the html and erase that attribute. I recommend to learn about regular expressions and form verification (for the later you can see https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation). I hope this help you! happy coding
Marked as helpful1@ljmarket13Posted about 3 years ago@Liltanie hey there! Appreciate the feedback! I actually didnt know about the html email validation part and thats why I didnt add the regex code to it but now I know why its needed. guess i need to read the docs more thoroughly! but thanks for the input! I will update it accordingly
1
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