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

Frontend Mentor | Interactive rating component

@Naveen6677

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


suggest me to improve my javascript knowledge. I am facing trouble in writing javascript code.

Community feedback

Cosmo 590

@cosmoart

Posted

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 helpful

0

@Naveen6677

Posted

@cosmoart Your suggestion is great and more understandable. Thank you sir😊

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