Design comparison
SolutionDesign
Solution retrospective
This is my first project built using javascript (jQuery)...Please leave feedback or any suggestion in comment box below
Community feedback
- @mattstuddertPosted about 5 years ago
Nice work on this challenge! How did you get on with using jQuery? I've got a couple of suggestions after looking at your code:
- You've got
mouseover
andmouseout
events that are changing the CSS of thebutton
in your JS. I would recommend keeping this as a:hover
effect in your CSS. - You've also got 3 separate events for the rest, which could be turned into a single event. I'd recommend wrapping the
input
andbutton
elements in aform
element. You could then listen out for asubmit
event on theform
and do the validations, etc.
I hope these tips help. Keep it up! 👍
1@abidou08Posted about 5 years ago@mattstuddert Thank for reply, i used jquery in targeting html elements because it's less writing than Javascript.
- I did it on purpose to know how to Style html using JS.
- I'll try to do it in next challenges.
Thank you so much for those tips :))
0@mattstuddertPosted about 5 years ago@abidou08 you're welcome! I'm looking forward to seeing your next solution 🙂
0 - You've got
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