Solution made with HTML + CSS + custom Vanilla JS form validation
Design comparison
Solution retrospective
Hi, I would appreciate feedback on the CSS and on the custom form validation. Thanks :)
Community feedback
- @philjacksPosted over 3 years ago
Hi friend!
CSS looks great & all the code is nice & clean. However, when I click the buttons the Javascript validation doesn't seem to work.
My suggestion would be to locate the eventListener for the form submit & add the preventDefault( ) method to stop the page refreshing.
I could be wrong (I'm still a newbie) but worth having a look.
1@etnlmyPosted over 3 years agohey @philjacks , thanks a lot for your feedback :)
You're right, I currently only validate fields when they loose the focus (on blur event). I guess I should also trigger the validation when I submit the form.
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