@platypus567Submitted over 2 years ago
Not sure how to make it deselect a button when another is clicked, any advice would be very helpful! Still stuck on that.
Not sure how to make it deselect a button when another is clicked, any advice would be very helpful! Still stuck on that.
Hey,
Your solution looks good and it responds appropriately to the screen size which is great!
For your question about how to deselect a button when another is clicked, instead of using the <button>
element for the ratings from 1-5, you can use multiple input[type="radio"]
elements and give them the same name
attribute. This basically allows only one item to be checked at a time.
I hope that helps answer your question :)