
Design comparison
Solution retrospective
It's my first ever interaction with DOM manipulation and event handlers.
What specific areas of your project would you like help with?I'd like to know if there is anything I did poorly in html structure ,if there's anything unnessecary in the css file and if there's a cleaner way to write the JS code.
Community feedback
- P@Theosaurus-RexPosted 2 months ago
Hi @MoatazJS !
This is a good first attempt, and the design looks very close to the original here!
However, in terms of markup, the underlying HTML for this should really be a
<form>
with a<input type="radio">
for the number selection. You can then utilise a button inside of the form element, which will automatically behave as a "submit" button inside of the form tag, and utilise the submission behaviour to update the DOM to the completed state!Here are a couple of useful links:
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