javascript,jquery,html-table,tr,jquery-clone
Add this line to your jQuery function right after the statement tbody.append(new_row); $(new_row).children('td').not('td:eq(0)').remove(); Hope it will help you....
javascript,jquery,html,jquery-clone
$('.template li') selects descendant <li>s of just the .template <div> which is just one in your case. This is what Descendant selector is used for - To get specific elements, instead of all. $(".button").on("click",function(){ var result = $('.template li').clone(); //______Descendant selector $("ul").append(result); }); While just $('li') selects <li>s from the...