title: Need to duplicate code
body: <p>So guys I have a code that outputs text boxes and the information will be saved.</p>
  
  <pre><code>&lt;tbody id="1111111"&gt;
      &lt;tr&gt;
      &lt;td class="ObjektiivneLeid"&gt;The function&lt;/td&gt;
      &lt;td class="Hinnang"&gt;
      &lt;input class="Hinnang_Valimata" type="radio" name="1111111_Hinnang" value="Valimata" id="1111111_Hinnang_Valimata" /&gt;Valimata
      &lt;input class="Hinnang_norm" type="radio" name="1111111_Hinnang" id="364644000_Hinnang_NORM" value="NORM" /&gt;NORM
      &lt;input class="Hinnang_pat checkbox_idParent" type="radio" name="1111111_Hinnang" id="1111111_Hinnang_Patoloogia" value="Patoloogia"/&gt;Leid&lt;/td&gt;
      &lt;td class="Patoloogia"&gt;kuupäev
      &lt;input id="1111111_otherInfo_kuupaev" name="1111111_otherInfo_kuupaev" type="text" value="" class="Patoloogia_text" onFocus="gnlGotFocus(getCurrentDate(),this);"
               onKeyDown="javascript:gnlKeyDown('00.00.0000',this,event);" maxlength='10'
               onblur="javascript:gnlDateValid(this,event,false);"/&gt;&lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;tr&gt;
  &lt;td class="title_sub Patoloogia"&gt;sight&lt;/td&gt;
  &lt;td class="Patoloogia"&gt;&lt;input id="1111111_otherInfo_sight" name="1111111_otherInfo_sight" type="text" value="" class="Patoloogia_text"&gt;&lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;tr&gt;
  &lt;td class="title_sub Patoloogia"&gt;hearing&lt;/td&gt;
  &lt;td class="Patoloogia"&gt;&lt;input id="364644000_otherInfo_hearing" name="364644000_otherInfo_hearing" type="text" value="" class="Patoloogia_text"&gt;&lt;/td&gt;
  
  &lt;td class="title_sub Patoloogia"&gt;speech&lt;/td&gt;
  &lt;td class="Patoloogia"&gt;&lt;input id="1111111_otherInfo_speech" name="1111111_otherInfo_speech" type="text" value="" class="Patoloogia_text"&gt;&lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;tr&gt;
  &lt;td class="title_sub Patoloogia"&gt;mobility&lt;/td&gt;
  &lt;td class="Patoloogia"&gt;&lt;input id="1111111_otherInfo_mobility" name="1111111_otherInfo_mobility" type="text" value="" class="Patoloogia_text"&gt;&lt;/td&gt;
  
  &lt;td class="title_sub Patoloogia"&gt;movement&lt;/td&gt;
  &lt;td class="Patoloogia"&gt;&lt;input id="1111111_otherInfo_movement" name="1111111_otherInfo_movement" type="text" value="" class="Patoloogia_text"&gt;&lt;/td&gt;
  &lt;/tr&gt;`
  </code></pre>
  
  <p>So this is the code that gives me boxes to fill in and I need to make a adding system to that code, so when I press i.e. '+' it will duplicate the code and I have new fields to fill and save. Also I need and 'x' button to erase the new field if the need comes. Any suggestions how would I go by doing it (I hope my explanation wasn't to confusing)
  I need something like <code>&lt;tr&gt;&lt;td colspan="4"&gt;&lt;img src="./images/addButton.gif" alt="Add" border="0" onclick="" class="button" /&gt;&lt;/td&gt;&lt;/tr&gt;</code> but I dont know what to pud in the onClick....I know it seems stupid but I really could use some help</p>