Responsive review page using HTML, CSS, and Vanilla JS

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.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @nikavolk
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
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