@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
@Natalia912
Posted
@florent6001 thank you! I'll take a look at it.