title: How to repeat div using jQuery or JavaScript?
body: <p>I have an HTML page with the following div tags</p>
  
  <pre><code>&lt;div data-role="page" id="pageHome" data-theme="a"&gt;
    &lt;div data-role="content"&gt;
      &lt;center&gt;
        &lt;h3&gt;&lt;a href="#pageHome" data-role="none"&gt;&lt;img src="images/logo.png" /&gt;&lt;/a&gt;&lt;/h3&gt;
      &lt;/center&gt;
      &lt;div class="dydivarr0"&gt; &lt;/div&gt;
      &lt;br /&gt;
      &lt;div data-role="controlgroup" class="ui-btn-right"&gt; &lt;a href="#page1" data-role="button"&gt;Next&lt;/a&gt; &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  
  
  &lt;div data-role="page" id="page1" data-theme="a"&gt;
    &lt;div data-role="content"&gt;
      &lt;center&gt;
        &lt;h3&gt;&lt;a href="#pageHome" data-role="none"&gt;&lt;img src="images/logo.png" /&gt;&lt;/a&gt;&lt;/h3&gt;
      &lt;/center&gt;
      &lt;div class="dydivarr1"&gt; &lt;/div&gt;
      &lt;br /&gt;
      &lt;div data-role="controlgroup" class="ui-btn-right"&gt; &lt;a href="#page2" data-role="button"&gt;Next&lt;/a&gt; &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div data-role="page" id="page2" data-theme="a"&gt;
    &lt;div data-role="content"&gt;
      &lt;center&gt;
        &lt;h3&gt;&lt;a href="#pageHome" data-role="none"&gt;&lt;img src="images/logo.png" /&gt;&lt;/a&gt;&lt;/h3&gt;
      &lt;/center&gt;
      &lt;div class="dydivarr2"&gt; &lt;/div&gt;
      &lt;br /&gt;
      &lt;div data-role="controlgroup" class="ui-btn-right"&gt; &lt;a href="#page3" data-role="button"&gt;Next&lt;/a&gt; &lt;/div&gt;
    &lt;/div&gt;    
  </code></pre>
  
  <p></p>
  
  <p>dydivarr is generated dynamically from web a response using JSON. Using that response I create dynamic div content, next I want to repeat that div as shown above. Is there any better way than to repeat static html code? I guess there must be few jQuery or JavaScript tricks for that.</p>
  
  <p>Any help would be appericiated.</p>