标签:
1、复制当前ul
var content = $("#" + id).closest("ul").clone(true); content.find("a").replaceWith(‘<a class="red pl5" name="Delete" href="#">删除</a>‘); content.find(".nameNum").html("签约人" + parseInt(count + 1)); content.find(":checkbox").removeAttr("checked"); content.appendTo("#DetainDocument");
2.移除ul块
$("[name=‘Delete‘]").live({ "click": function () { $(this).closest("ul").remove(); $("#addDocumentType").removeAttr("disabled"); } });
标签:
原文地址:http://www.cnblogs.com/eric-gms/p/5594281.html