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 componet

@Miguelaeb

Desktop design screenshot for the Interactive rating component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

T
Grace 29,310

@grace-snow

Posted

Hi I’m afraid you need to change the html a lot on this (which will change your js too - but the good news is it makes the js only a few lines!)

This must be a form with radio inputs and a submit button. Ideally those radio inputs should be in a labelled fieldset.

The js must listen for submit of the form. Then it can get the chosen value simply with form.rating.value (presuming radios have the name of “rating”) which can be used on the results panel

Marked as helpful

0

@Miguelaeb

Posted

@grace-snow Thanks for the feedback, I already changed the code.

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