title: javascript hiding divs
body: <p>I want to be able to have a javascript function that hides divs for me. For example, I have something like</p>
  
  <pre><code>&lt;div id='container'&gt; 
      &lt;div class='item'&gt;&lt;/div&gt;
      &lt;div class='item'&gt;&lt;/div&gt;
      &lt;div class='item'&gt;&lt;/div&gt;
      &lt;div class='item'&gt;&lt;/div&gt;
      &lt;div class='item'&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And i would like the function to hide every 'item' class element after say the first 3. How would i go about this?</p>
  
  <p>Thanks for any help</p>