Solution Interactive Rating Component

Please log in to post a comment
Log in with GitHubCommunity feedback
- P@welpmoz
Your JavaScript code works, but I think it’s not very reusable. Keep in mind that using a radio input combined with the name attribute ensures that only one input can be selected at a time, avoiding the need to repeat the logic for styles.
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