Submitted over 1 year ago
https://github.com/amirandersonjones/interactive-rating-component
@amirandersonjones
Design comparison
SolutionDesign
Solution retrospective
It was challenging to figure out how to take the user star rating input and display it on the page for the thank you.would appreciate if someone could help me figure out how to thank the user by saying you chose (amount of stars) on the thank you card.
Community feedback
- @J-HernandezMPosted over 1 year ago
try using a radio input for the buttons of the scores, then read all the HTML elements in the JS using document.querySelector, create a function that evaluate each radio input element and see witha condition if they have the propertie .checket = true, if so then thats the option the user selected and you can assign that to a variable
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