title: Check background color in if statement
body: <p>I have an <code>if</code> statement with 2 conditions. For some reason it changes the background color to red and never to black.</p>
  
  <pre><code>$(".circles").click(function() {
      counter++;
      if (counter % 2 === 0 &amp;&amp; $(this).css("background-color")=="#FFFFFF") {
          $(this).css("background-color", "black");
      } else {
          $(this).css("background-color", "red");
      }
  })
  </code></pre>
  
  <p>The <code>.circles</code> is set to <code>#FFFFFF</code> originally. 
  What is wrong? </p>