@RajSanjel
Posted
One thing you can do is make it normal button and add Event listener for click in button. When the submit button is clicked you can look for the rating button which is clicked and get its inner text and if nothing is clicked you can handel it by using if statement. Hope this helped. If you have any confusion you are free to ask.
@lucianbeck
Posted
@RajSanjel Thanks a lot Raj! I actually managed to get it done by using if conditions. I really appreciate your feedback
@RajSanjel
Posted
@lucianbeck Its my pleasure to help you. It looks good but still there is one issue and that is if user presses somewhere else then it removes the color. Its would be better to use class so that the color doesn't fade out when user clicks somewhere else since user gets confused and its not a good user experience. Also the attribution section is creating problem in mobile. You might wanna fix it. And if this helped you can mark it as helpful 😁 but its your choice to mark or not.
Marked as helpful
@lucianbeck
Posted
@RajSanjel Done. I think I've solved every issue now. Thanks for your help!
@RajSanjel
Posted
@lucianbeck You are welcome.