So I’m testing something out with document.getElementById("c5)
's innerhtml
. When you click the no
square and place it on any other empty square, I want the original place of the no
square to disappear. I was able to kind of do it, but it seems that when you click that empty spot where no
used to be the code allows the square to be clickable. My goal is to not have it be clickable because the innerhtml is empty and I’m not what’s causing it.
It might be a scoping issue, but I have no idea how to fix it.
Codepen: https://codepen.io/bbg4/pen/NWzBwYo