求教,点击事件后请求数据再动态添加后,插件没有渲染上,加上
$("#test").searchableSelect();
报$(...).searchableSelect is not a
function
$('#personInCharge').bind('input propertychange', function() {
$.ajax({
"type": "POST",
"url": "/Reserving/reserve/showAllEmployee",
"dataType": "json",
"async": false,
"success": function(resp) {
chargeFlag = 1;
$("#personInCharge").css("display", "none");
$('#testDiv').css('display', "block");
$("#test").css('width', '300px');
$("#test").css('height', '25px');
if (resp.data) {
for (var i = 0; i "+resp.data[i].ee_one+"
");
}
}
},
"error": function(resp) {
layer.msg("获取人员失败!")
}
});
$("#test").searchableSelect();
})
回复