Interactive Rating Component

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...
Please log in to post a comment
Log in with GitHubCommunity feedback
- @fernandolapaz
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 helpful
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