@pradeeps4ini
Posted
@AdarshRai0, how are you, buddy?
You've done a great job at converting the design to code.
When i select a rating, the selected rating persist after i refresh the page. If it's not how you coded it to be; then after the user has submitted the rating, you could iterate over all inputs and turn their checked
property to false
.
I wrote a small codepen demo that demonstrate this. Have a look and read/modify the code and i hope its helpful to you. Please feel free to reach me, if any improvement can be made to codepen or you need help understanding something. https://codepen.io/pradeeps4ini/pen/OJvZGev.