关于一个页面中有两个autocomplete的问题
现在有一个页面,里面需要两个文本框都有autocomplete,其中一个没有问题,另外一个查询也有东西,但是当点击查询到的内容时不会将内容填充到文本框中,求大神帮忙看下
jQuery代码如下:
function getFWLX(){
$("#FWLX").autocomplete("getQFFWLX", {
minChars: 1,
matchSubset:false,
max: 5,
width : 100,
delay : 400,
scrollHeight: 130,
matchContains:true,
scroll : true,
formatItem: function (row, i, max) {
return "<table width='100'><tr><td align='left'>" + row.TYPENAME + "</td></tr></table>";
},
formatMatch: function(row, i, max){
return row.TYPENAME;
}
}).result
(function(event, data, formatted) {
});
}