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

Rating Component JS and Sass

Natalia 220

@Natalia912

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


I didn't get the result I wanted, because my JS knowledge isn't yet good enough.

Community feedback

@florent6001

Posted

Hi,

Care actually we can select multiples number, you have to remove every "clicked" class before add to the select number.

So if i select number 1, then the number 2. The number 2 will not be highlighted.

For myself, i created a while with every number-div, then everytime i click. The loop remove all the class before assign the new one. Here is my code if you want to check it out :

https://github.com/florent6001/frontend-mentor/tree/main/interactive-rating-component

1

Natalia 220

@Natalia912

Posted

@florent6001 thank you! I'll take a look at it.

0

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