62,073
社区成员
发帖
与我相关
我的任务
分享
$(".menutd").click(function () {
// alert("asasas");
//alert(receiveNames.val());
var phone = $(this).children("input").eq(0).val(); //号码
var addressInfoId = $(this).children("input").eq(1).val(); //id
var name = $(this).children("span").html(); //姓名
//alert("id为:" + addressInfoId + ",姓名:" + name + ",号码:" + phone);
//var oldphones = "";
if ($.trim(divReceiveUsers.html()).length != 0) {
for (var i = 0; i < $(".moblie").length; i++) {
if (phone == $(".moblie").eq(i).attr("id")) {
return;
}
}
//alert(oldphones);
}
var item = "<div class=\"item\"><span id='" + phone + "' class=\"moblie\" name=\"moblie\" runat=\"server\">" + name + "</span><img class=\"imgDel\" src=\"images/12-em-cross.png\" alt=\"删除\"/></div>"; // onclick=\"deleteName(this)\"
//alert(item);
divReceiveUsers.append(item);
});
function del(id) {
var url = "/configuration/system/ajax_files.aspx?no-cath=" + Math.random();
var Action = "act=delfiles&docid=" + _docid + "&fid=" + id;
jQuery.getJSON(url, Action, function (data) {
if (data.status == "true") {
GetImgList();
}
else {
alert("信息操作失败!");
}
});
}