Design comparison
Solution retrospective
It was my first project that i myself implemented some JavaScript logic
Community feedback
- @elisilkPosted about 1 month ago
Hi 👋 @shpokas270,
Congrats on a great solution. 👏 I appreciate the goal of focusing on just getting some experience with the JavaScript logic rather than getting distracted by other aspects of the challenge.
When you are ready to dive in further 🤿, I'd suggest trying to implement a bit more of the client-side form validation. I found this Client-side form validation guide on MDN to be super helpful as I built my solution to this challenge. And the section on "Validating forms using JavaScript" is especially useful:
For example, right now it looks like your email input field begins with a
.wrong-format
class on it. I would suggest taking that off and then replacing.wrong-format
with theinput:invalid
selector in your CSS. You then have to make a few more updates to your HTML and to your JavaScript to actually do the validation, but the example provided in the guide is very nicely aligned with this particular challenge, so I hope it will be reasonably straightforward to see the connection. If you run into trouble, though, I'd be happy to help troubleshoot.Worth considering if you are thinking about improving on this solution. 🤔
Happy coding. 💻
Eli
Marked as helpful0
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