It’s a 3x3 grid for my Tic Tac Toe project. A display box on top of the grid contains a button to play the game. When the play button is clicked, the box’s display is set to none, leaving only the grid visible to play on. The grid squares are supposed to turn grey on hover. If you click a square it turns blue. When the game is over all squares are reset to white and the display box shows up with the button to play again.
Hover stops working after you click the play button. Hover only works before you click play the first time.
I’m sharing a snippet to show the problem in my actual project. I can’t figure out what is missing. Please advice.
Thanks and regards