Three problems.
1. You need to clone the row before you insert it as a new row.
2. You need to append to the <tbody> that is created for you.
3. You need to remove the id from the newly created row. You can give it a new one if you like.
- $(document).ready(function() {
- $("#tbl_add").click(function(){
- var newRow = $("#thi").clone().removeAttr("id")
- $("table>tbody").append(newRow);
- })
- })
JΛ̊KE