Help: how to deselect text in a non input element (my tic-tac-toe challenge) solved

Help: how to deselect text in a non input element (my tic-tac-toe challenge) solved
0

#1

Hello, this is my TIC- TAC-TOE challenge, I need some help:

(MOZILLA browser) when a player start the game and click on a square, the letter (X or O) is showed as selected text. I would like to know if there are a function to unselect the text.

thanks


#2

I am not sure of what you want, but if you are trying to avoid the selection of the text, you can use user-select: none; in css


#3

Thanks, I used -moz-user-select: none; in css.