Im trying to clone tree, remove one element from it and then append result to new place. But the problem is that element is not deleted, it always append original tree.
$(".js-parent-trigger").click(function() {
var commentForm = $("#js-add-comment-wrapper").clone(true).css("margin", "10px").remove(".js-add-comment-title");
$(this).parents(".js-comment-wrapper").append(commentForm);
return false;
});
1 Answer