我正在使用jquery ui进行自动完成。当我有调试时,它不被称为动作
jQuery("#industrySearch").autocomplete({
source: function(request, response){
jQuery.post("searchIndustryaction.action", {data:request.term}, function(data){
response($.map(data, function(item) {
return {
label: item.id,
value: item.name
}
}))
}, "json");
},
minLength: 2,
dataType: "json",
cache: false,
focus: function(event, ui) {
return false;
},
select: function(event, ui) {
this.value = ui.item.label;
return false;
}
});