title: Button background color toggle
body: <p>I have been trying to toggle the background-color property of a button onclick but the color only changes once and does not toggle back and forth. Below is the code.</p>
  
  <pre><code>function btnColor(btn, color) {
  var property = document.getElementById(btn);
      if (property.style.backgroundColor == "rgb(244,113,33)") {
          property.style.backgroundColor=color;
      }
      else {
          property.style.backgroundColor = "rgb(244,113,33)";
      }
  }
  
  &lt;input type="button" id="btnHousing" value="Housing" onclick="toggleLayer('transparent1');btnColor('btnHousing','rgb(255,242,0)');" /&gt;
  </code></pre>