title: Use jQuery to find div by background color
body: <p>I'm trying to use jQuery to find the number of divs that are both visible, and have a background color of Green.</p>
  
  <p>(Normally I'd just add a class to the div, style it green, and check for that class in jQuery but in this instance, I can't actually change the markup of the page itself in any way)</p>
  
  <p>I currently have the visible div part working as  :</p>
  
  <pre><code>if(  // if there are more than one visible div 
      $('div.progressContainer:visible').length &gt; 0   
  ){
  </code></pre>
  
  <p>I'd like to throw some kind of "and background color is green" selector in there.</p>
  
  <pre><code>// not legit javascript
  if(  // if there are more than one visible div, and its color is green 
      $('div.progressContainer:visible[background-color:green]').length &gt; 0   
  ){
  </code></pre>
  
  <p>Is it possible to do this?</p>