title: Pagination with JavaScript
body: <p>I have html code that have some <code>&lt;div class="post"&gt;</code> inside. I want to paginate them with javascript. How can I do that? (I know I can do it by PHP but I just want to do it with JS)</p>
  
  <p>the html generated by my php looks like that:</p>
  
  <pre><code>    &lt;body&gt;
  &lt;div id="content"&gt;
  &lt;div class="post"&gt;
  post content
  &lt;/div&gt;
  &lt;div class="post"&gt;
  &lt;/div&gt;
  ...
  
  &lt;/div&gt;
  
  &lt;/body&gt;
  </code></pre>
  
  <p>Maybe it will be the best to use jquery for that? (I'm using jquery ajax to load html into content allready)</p>