@Adriangln11
Posted
Hey, Hi. First of all sorry about my grammar and merry christmas too.!!
1.- About the first issue, you can change the tag div for button on every rate number, and use the pseudoclase :focus to keep the properties on the element selected.
2.- For the second issue you can add a property value on every rate button, with an event listener capture the value of the button selected on a variable initialized already like undefined. Also, on the listener on submit button validate if that variable is still undefined, if its undefined it means any button has been clicked, so you could show like a modal or something, otherway continue with the code normaly.
I hope has been helpfull. Happy Coding!!
Marked as helpful