title: jQuery check if .css property was set
body: <p>My code looks like this</p>
  
  <pre><code>if($(element).css("background-color") == null){
    $(element).css("background-color", "white");
  }
  </code></pre>
  
  <p>I want to make sure that if the color wasn't set in the <code>style.css</code> file, I add it. But that code is not working. It's always returning <code>rgba(0,0,0,0)</code>. The browser I am working with is  Chrome. </p>
  
  <p>Is there another way to check if the color wasn't set?</p>