jquery.autocomplete.js边输入边搜取id的问题
functionBindCustomservice(){debugger;$.ajax({type:"post",url:"/HouseModule/HouseListA...
function BindCustomservice() {
debugger;
$.ajax({
type: "post",
url: "/HouseModule/HouseListAll/GetUserALL?depid=ea687116-8041-4eb0-8d9d-05acf3a3d668",
success: function (data) {
datas = eval("(" + data + ")");
for (var i = 0; i < datas.length; i++) {
TheArray += datas[i].realname + " ";
}
datas = TheArray.split(" ");
$("#Customservice").autocomplete(datas, {
minChars: 0,
autoFill: true,
mustMatch: true,
matchContains: true,
max: 50000,
});
}
});
// $("#Customservice").flushCache();
}
选中的中文名字怎么获取id值? 展开
debugger;
$.ajax({
type: "post",
url: "/HouseModule/HouseListAll/GetUserALL?depid=ea687116-8041-4eb0-8d9d-05acf3a3d668",
success: function (data) {
datas = eval("(" + data + ")");
for (var i = 0; i < datas.length; i++) {
TheArray += datas[i].realname + " ";
}
datas = TheArray.split(" ");
$("#Customservice").autocomplete(datas, {
minChars: 0,
autoFill: true,
mustMatch: true,
matchContains: true,
max: 50000,
});
}
});
// $("#Customservice").flushCache();
}
选中的中文名字怎么获取id值? 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询