【发布时间】:2014-07-19 05:13:23
【问题描述】:
$("#textjawatan" + noid).autocomplete({
source: function( request, response ) {
$.ajax({
url: "pendaftar_table.php",
dataType: "json",
data: { term : "pe" } ,
success: function( data ) {
response( data );
}
});
},
minLength: 2,
select: function(event, ui) {
$("input#jawatan" + noid).val(ui.item.no);
}
});
当我使用时
数据:{术语:“pe”}
它的工作,但是当我使用时
数据:{术语:“pe”,id:“jawatan”}
它不工作,是什么问题?
【问题讨论】:
-
错误是什么?服务器端没有收到?
-
错误是自动补全不起作用,它没有显示请求数据
-
服务器端工作,我没有改变任何东西
标签: javascript jquery ajax json autocomplete