Submitted over 2 years ago
Frontend Mentor | Interactive rating component
@Naveen6677
Design comparison
SolutionDesign
Solution retrospective
suggest me to improve my javascript knowledge. I am facing trouble in writing javascript code.
Community feedback
- @cosmoartPosted over 2 years ago
Hi Naveen! Congratulations on completing this challenge... You can use input radios and forms to take advantage of the use of input submit, the required attribute, and to improve accessibility. In addition, you can display the value selected by the user in a very easy way:
"You selected " + document.querySelector('input[name="feedback"]:checked').value + " out of 5"
I hope this is useful for you... Keep it up👍
Marked as helpful0@Naveen6677Posted over 2 years ago@cosmoart Your suggestion is great and more understandable. Thank you sir😊
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