title: Clone table row and increment input name
body: <p>I need to clone a hidden row and increment the name of the input by one. I can currently clone the input but can not clone an element without the name attribute.</p>
  
  <p>How can I clone everything in the cell and also increment the name count?</p>
  
  <p>In my JSFIDDLE example you can see the issue I am running into.</p>
  
  <p><a href="http://jsfiddle.net/ysfac04k/2/" rel="nofollow"><strong>JSFIDDLE</strong></a></p>
  
  <pre><code>var c = $(cur_td).find($(children[0]).prop('tagName')).clone().val("")
  c.attr("name", $(cur_td).data("name") + newid);
  </code></pre>
  
  <p>On line 38 of the HTML the following button does not clone with the rest.</p>
  
  <pre><code>&lt;button type="button"&gt; Info &lt;/button&gt;
  </code></pre>
  
  <p>I do not want to give the button a name because I fear it will break my struts 1 action.</p>