Design comparison
Solution retrospective
This is my first JS project! This took way longer than I expected and had to resort to chatGPT when Google wasn't helping...
Community feedback
- @fernandolapazPosted over 1 year ago
Hi ππ», this may interest you for future projects:
In theory, here we have a group of interactive elements where users are expected to enter data (their rating) to be sent.
So, you were right to use
<form>
ππ» but a form is used to collect user input and should be a container for some kind of input elements (not <li>). In this case it would be appropriate to use 'radio buttons'<input type='radio'>
so that only one option can be selected.And a
<button type=' submit'>
(<input type='submit'> is fine too) to send that data.I hope itβs useful : )
Regards,
Marked as helpful0@CtrlAltSudoPosted over 1 year ago@fernandolapaz
Thank you for this, I had no idea about radio buttons, that would have saved me from using a lot of javascript, I'll definitely remember this for my next project!
1
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