请问为什么jquery autocomplete的最新版本不识别result事件,应该用什么取代?
$("#ee").autocomplete({
source: function( request, response ) {
$.ajax({
url: "aa.php",
type:"post",
dataType: "json",
data: {"mm":request.term},
success: function( JSONList ) {
response($.map(JSONList,function(item){
return{
label:item.name,
value:item.name
}
}));
}
});
},
minLength: 1,
width:10 }).focus(function(event,item){
document.getElementById("tt").value=item.tt;
document.getElementById("tt").disabled=true;
});
而且,为什么我定义的width:10不起作用
$("#ee").autocomplete({
source: function( request, response ) {
$.ajax({
url: "aa.php",
type:"post",
dataType: "json",
data: {"mm":request.term},
success: function( JSONList ) {
response($.map(JSONList,function(item){
return{
label:item.name,
value:item.name
}
}));
}
});
},
minLength: 1,
width:10 }).focus(function(event,item){
document.getElementById("tt").value=item.tt;
document.getElementById("tt").disabled=true;
});
而且,为什么我定义的width:10不起作用
解决方案 »
- js要求一直连网,中途不能断开
- js控制每页输出表格的多少行的问题、
- jQuery怎么遍历表格,获取第一列的值,在线等...
- 关于jQuery验证手机号码的问题,为什么不起作用?请大家帮我看看,多谢!
- javascript的document问题
- 创建ActiveXObject("Excel.Application")对象错误
- 判断的问题,急??
- 跨框架操作js,没有权限?
- 向高手讨教一个关于“如何限制 <iframe src=''></iframe>里头被链接页面的高度”
- 關閉窗口前的取消操作。。
- 请教下在firefox里的onmouseover事件该如何写
- Ext 使用 突然 标题的字体 会一会儿变大 鼠标放上去又变小了
请问有人遇到过吗