title: How to create a pagination in html using jquery
body: <p>I have the below html tags. I will have n number of buttons and respective tables in a page. The page is dynamic, the data may increase, or decrease with respective backend where it feeds the data from. I would like to implement pagination, and showcase only 2 buttons and tables per page. if user wanna see they have to use pagination to see remaining data.</p>
  
  <pre><code>    &lt;html&gt;
        &lt;body&gt;
          &lt;div id="tab"&gt;
            &lt;div&gt;
              &lt;button type="button" class="button"&gt;Source_1&lt;/button&gt;
            &lt;/div&gt;
            &lt;div class="logtitude"&gt;
               &lt;table class="data_table"&gt;
               &lt;tr&gt;
               &lt;th&gt;111&lt;/th&gt;
               &lt;/tr&gt;
               &lt;tr&gt;
               &lt;td&gt;111&lt;/td&gt;
               &lt;/tr&gt;
               &lt;/table&gt;
             &lt;/div&gt;
            &lt;div&gt;
              &lt;button type="button" class="button"&gt;Source_2&lt;/button&gt;
            &lt;/div&gt;
            &lt;div class="logtitude"&gt;
               &lt;table class="data_table"&gt;
               &lt;tr&gt;
               &lt;th&gt;222&lt;/th&gt;
               &lt;/tr&gt;
               &lt;tr&gt;
               &lt;td&gt;222&lt;/td&gt;
               &lt;/tr&gt;
               &lt;/table&gt;
            &lt;/div&gt;
            &lt;div&gt;
              &lt;button type="button" class="button"&gt;Source_3&lt;/button&gt;
            &lt;/div&gt;
            &lt;div class="logtitude"&gt;
               &lt;table class="data_table"&gt;
               &lt;tr&gt;
               &lt;th&gt;333&lt;/th&gt;
               &lt;/tr&gt;
               &lt;tr&gt;
               &lt;td&gt;333&lt;/td&gt;
               &lt;/tr&gt;
               &lt;/table&gt;
            &lt;/div&gt;
          &lt;/div&gt;
         &lt;/body&gt;
       &lt;/html&gt;
  </code></pre>
  
  <p>Can somebody help me to achieve the pagination to display only 2 <code>&lt;div&gt;buttons&lt;/div&gt;</code> per page.</p>