title: jquery find element with class and style display:block
body: <p>I am retrieving the number of "found" elements (these elements have the <code>.highlight</code> class) with this simple jQuery snippet:</p>
  
  <pre><code>$(".highlight").length
  </code></pre>
  
  <p>But now my problem is that some elements are hidden, via <code>style="display: none;"</code></p>
  
  <p>Now, How can I get the number of elements highlighted AND displayed?</p>
  
  <p>Something like:</p>
  
  <pre><code>$(hasClass 'highlight' AND has style 'display: block'). length ?
  </code></pre>