Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Interactive Rating Component

@starryrobot

Desktop design screenshot for the Interactive rating component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hey all, Let me know what you think of my attempt at this project! I found it relatively simple but enjoyable! I enjoyed trying to figure out ways to implement JS. For example, I found that multiple options could be selected for rating and so created a way to store last selection in a variable and to pull the value from this variable when the 'Submit' button is clicked. A function is invoked at the end to check what selection(s) were made and to choose selection based on users last selection. Example: If user chose 1, 3 and 5 the option selected would be 5. All other options would be ignored.

Please let me know what you think and thanks!

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

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