Design comparison
SolutionDesign
Community feedback
- @grace-snowPosted over 1 year ago
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 panelMarked as helpful0@MiguelaebPosted over 1 year ago@grace-snow Thanks for the feedback, I already changed the code.
0
Please log in to post a comment
Log in with GitHubJoin 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