Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery duplicate last table row

var $tableBody = $('#tbl').find("tbody"),
    $trLast = $tableBody.find("tr:last"),
    $trNew = $trLast.clone();

$trLast.after($trNew);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #duplicate #table #row
ADD COMMENT
Topic
Name
2+6 =