title: How do I get the td color to change color upon a second click?
body: <p>Here is my code below. I am attempting to reverse the click that was already made. This is happening with a td tag. I have combined failed experiments from several questions here and other forums. </p>
  
  <pre><code>function changeColor(elem) {
      if (elem.style.backgroundColor = "#5AD9C1" || "transparent") {
          elem.style.backgroundColor = "#66FF66";
      } else if (element.style.backgroundColor = "#66FF66") {
          elem.style.backgroundColor = "#5AD9C1";
      }
  };
  </code></pre>