Skip to content
Submitted over 1 year ago

Responsive Interactive rating page Using Html Css JavaScript

LVL 3
SATISH290
@satish064
A solution to the Interactive rating component challenge

Solution retrospective


What are you most proud of, and what would you do differently next time?

I use JavaScript and it's work well.

What challenges did you encounter, and how did you overcome them?

In rating part, I implement the class When I clicked rating count and so that it shows in white color, but others can also select if you click them e.g. you can select 1 and 3 both so, to overcome this problem I, in foreach loop I write for loop inside the foreach for removing selected class then add selected class so Whenever user click on rating count in js first selected classes removed then which is to clicked which is to applied

Code
Loading...

Please log in to post a comment

Log in

Community feedback

No feedback yet. Be the first to give feedback on SATISH’s solution.

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