title: JQuery copy of div
body: <p>I am trying to setup a form where based on the value of a select box either 1,2,3,4 that it would show on the page the following code only the number of times that match the value of the select box.</p>
  
  <pre><code>&lt;div id='guestDetails'&gt;
              &lt;tr&gt;
              &lt;td&gt;Guest ".$cnt."'s Name&lt;/td&gt;
              &lt;td&gt;Guest ".$cnt."'s Address&lt;/td&gt;
              &lt;td&gt;Guest ".$cnt."'s Phone&lt;/td&gt;
              &lt;td&gt;Guest ".$cnt."'s Email&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;/tr&gt;
              &lt;tr&gt;
              &lt;td&gt;&lt;input type='text' name='guest".$cnt."Name' /&gt;&lt;/td&gt;
              &lt;td&gt;&lt;input type='text' name='guest".$cnt."Address' /&gt;&lt;/td&gt;
              &lt;td&gt;&lt;input type='text' name='guest".$cnt."Phone' /&gt;&lt;/td&gt;
              &lt;td&gt;&lt;input type='text' name='guest".$cnt."Email' /&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
                  &lt;/div&gt;
  </code></pre>
  
  <p>So if the value of the select is 2 then those input boxes would show 2 times. If the value is changed to 3 then they would be there 3 times. Not quite sure how to accomplish this.</p>