Solution made with HTML + CSS + custom Vanilla JS form validation

Solution retrospective
Hi, I would appreciate feedback on the CSS and on the custom form validation. Thanks :)
Please log in to post a comment
Log in with GitHubCommunity feedback
- @philjacks
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.
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