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