title: jQuery count amount of divs on a page and hide?
body: <p>I'm displaying an amount of divs on a page that can be anywhere from 1-50, all will be generated and loaded into the HTML via PHP, but I want to only display 9 initially and then load an additional 9 on a button click until all are loaded.</p>
  
  <pre><code>   var alldivs = $('.preview-container').hide();
  
  $('button').on('click', function(){
      var turn = alldivs.splice(0, 9);
      if (turn.length) {
          console.log(turn);
          turn.fadeIn();
      }
  });
  </code></pre>