title: jquery select visible without using :visible
body: <p>from jquery docs an element is hidden when : An ancestor element is hidden, so the element is not shown on the page.</p>
  
  <p>I have a hidden div and inside paragraphs that can be either hidden or visible</p>
  
  <pre><code>&lt;div id="wrapper"&gt; &lt;-- this is hidden --&gt;
      &lt;p class="myclass" style="&gt;display:none"&gt;text&lt;/p&gt; 
      &lt;p class="myclass"&gt;text&lt;/p&gt; 
      &lt;p class="myclass" style="&gt;display:none"&gt;text&lt;/p&gt; 
      &lt;p class="myclass"&gt;text&lt;/p&gt; 
  &lt;/div&gt;
  </code></pre>
  
  <p>So any selection $(".myclass:visible") fails because wrapper is hidden</p>
  
  <p>Is there any other way to check if are visible elements inside wrapper and count them.</p>
  
  <p>For example check if element has class myclass and css display:none is one solution i guess but any tries from me are failed.</p>
  
  <p>Any help appreciated </p>