Append rows from other table

by Michel Plungjan

HTML

<table id="tableName" style="border:1px solid green">
  <tr>
    <td>One</td>
  </tr>
</table>
<input type="button" id="copy" value="copy" />
<table id="tableRow" style="border:1px solid red">
  <tr>
    <td>Two</td>
  </tr>  
  <tr>
    <td>Three</td>
  </tr>  
  <tr>
    <td>Four</td>
  </tr>
</table>

JavaScript

$("#copy").click(function() {
  $("#tableRow tr").each(function() {
      $('#tableName').append($(this).clone());
  });                             
});