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"); } });

 

相关文章:

  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
猜你喜欢
  • 2021-09-25
  • 2021-04-27
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2021-06-15
相关资源
相似解决方案