I have a table with an Add button on the end. When you click this button I want a new table row to be created underneath the current one. I also want the input fields on thi
The code below will clone last row and add after last row in table:
var $tableBody = $('#tbl').find("tbody"), $trLast = $tableBody.find("tr:last"), $trNew = $trLast.clone(); $trLast.after($trNew);
Working example : http://jsfiddle.net/kQpfE/2/