Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 1 year ago

Responsive Interactive rating page Using Html Css JavaScript

SATISH•290
@satish064
A solution to the Interactive rating component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

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 with GitHub

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2026
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License