title: Create tab dynamically after some div in first tabs
body: <p>Create tab dynamically after showing 20 div in first tab.Actually I am generating a div dynamically,there may be 100 div generated dynamically.I want to show 20 div in one tab and if there are 100 div there it will automatically generate 5 tabs with 20 div in each tabs.</p>
  
  <pre><code>&lt;div id="TabbedPanels1" class="TabbedPanels"&gt;
    &lt;ul class="TabbedPanelsTabGroup"&gt;
      &lt;li class="TabbedPanelsTab" tabindex="0"&gt;tab1&lt;/li&gt;
      &lt;li class="TabbedPanelsTab" tabindex="0"&gt;tab2&lt;/li&gt;
  
    &lt;/ul&gt;
    &lt;div class="TabbedPanelsContentGroup"&gt;
  
      &lt;div class="TabbedPanelsContent"&gt;
          &lt;div id="slider1" class="sliderwrapper"&gt;  
   &lt;div class="contentdiv"&gt; 
  12345   
  &lt;/div&gt;
  &lt;div class="contentdiv"&gt; 
  12345   
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;div id="paginate-slider1" class="pagination"&gt;   
  
  &lt;/div&gt;
  &lt;div id="paginate1-slider1" class="pagination2"&gt;
  
  &lt;/div&gt;   
      &lt;/div&gt;
  
       &lt;/div&gt;
       &lt;/div&gt;
  </code></pre>