title: How can I replicate a div a certain number of times based on a select-box value?
body: <p>I am trying to make a script that, when I choose in the dropdown 4, the div is repeated 4 times.</p>
  
  <pre><code>&lt;div&gt;repeat&lt;div&gt;
  
  &lt;script type = "text/javascript"&gt;
      document.write('&lt;select&gt;')
      for (var i = 0; i &lt; 10; i++) {
          document.write('&lt;option value=' + i + '&gt;' + i + '&lt;/option&gt;');
      }
      document.write('&lt;/select&gt;')
  &lt;/script&gt;
  </code></pre>
  
  <p>Now the problem is repeat the number of times that the user choose in dropdown.</p>
  
  <p><a href="http://jsfiddle.net/Mt9hy/" rel="nofollow">demo</a></p>