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

Responsive review page using HTML, CSS, and Vanilla JS

@jgorelik23

Desktop design screenshot for the Interactive rating component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


How should I go about making the buttons act like radio buttons? When you click the submit button, it deselects the number buttons.

Community feedback

Nika 180

@nikavolk

Posted

Hello Justin!

I had a look through your code and there doesn't seem to be anything wrong on the JS side.

However, in your HTML file, I think you would need to use <input type="radio"> for each choice and group them up, instead of using buttons for each rating. I believe doing it that way the chosen rating will stay selected upon clicking the Submit button.

Marked as helpful

1

@jgorelik23

Posted

@nikavolk Thanks! I fixed it but I used a different approach (in the JS).

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