title: Use jQuery to check if all div's are hidden
body: <p>How would I check if all the div's with class test are hidden. And if they are all hidden set wrap1 to hidden. Thanks.</p>
  
  <pre><code>&lt;div id='wrap1'&gt;
  &lt;div class="header"&gt;Header 1&lt;/div&gt;
  &lt;div class='test'&gt;&lt;a href="#"&gt;Test 1&lt;/a&gt;&lt;/div&gt;
  &lt;div class='test'&gt;&lt;a href="#"&gt;Test 2&lt;/a&gt;&lt;/div&gt;
  &lt;div class='test'&gt;&lt;a href="#"&gt;Test 3&lt;/a&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>UPDATE:
  Thanks everyone for the really quick answers, I got it working. They were all very helpful.</p>