title: How can I duplicate a row in DataTables (jQuery DataTables plugin)?
body: <p>I found out how to delete a row with this jQuery code. While clicking on a td with the class delete and a garbage icon.</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;table id="foo" class="display" cellspacing="0" width="100%"&gt;
  &lt;tbody&gt;
        &lt;tr&gt;
        &lt;td&gt;Foo1&lt;/td&gt;
        &lt;td&gt;Foo2&lt;/td&gt;
        &lt;td&gt;Foo3&lt;/td&gt;
        &lt;td class="delete"&gt;IMAGE src here&lt;/td&gt;
        &lt;td&gt;&lt;img src="http://placehold.it/20x20"&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/tbody&gt;
  </code></pre>
  
  <p></p>
  
  <p>JAVASCRIPT</p>
  
  <pre><code>$('#foo tbody').on( 'click', 'tr .delete', function () {
          $(this).closest('tr').fadeOut("slow", function(){
              $(this).remove();
          })
      } );
  </code></pre>
  
  <p>But I did not find anything about duplicating rows. I just want to click on a td with another icon in it and the row is duplicated below.</p>