jquery插件autocomplete
2016-05-05 17:17
495 查看
1.插件不需要引用另外的js,只需要引入jquery-ui.min.js即可。
2.部分参数详解:
$( "#project" ).autocomplete({
minLength: 0, //在触发autoComplete前用户至少需要输入的字符数
source: projects,//数据来源
focus: function( event, ui ) { //focus事件
$( "#project" ).val( ui.item.label);
return false;
},
select: function( event, ui ) {//选中后执行事件,用于联动
$( "#project" ).val( ui.item.label );
:
return false;
}
});
2.部分参数详解:
$( "#project" ).autocomplete({
minLength: 0, //在触发autoComplete前用户至少需要输入的字符数
source: projects,//数据来源
focus: function( event, ui ) { //focus事件
$( "#project" ).val( ui.item.label);
return false;
},
select: function( event, ui ) {//选中后执行事件,用于联动
$( "#project" ).val( ui.item.label );
:
return false;
}
});
相关文章推荐
- jquery 全选、全不选、反选效果的实现代码【推荐】
- jquery.form.js后台提交成功,但没触发回调函数
- jquery实现全选和全不选功能效果的实现代码【推荐】
- jquery实现全选功能效果的实现代码
- jQuery插件分类、编写及实例
- jQuery Ajax Post Data Example
- jQuery验证插件 Validate详解
- jquery——$.each的用法
- jquery—multiSelect 一个页面多个下拉
- jquery-autocomplete 组件使用
- jquery ajax中使用jsonp的限制
- jQuery Mobile 和 Kendo UI 的比较
- jQuery 获取屏幕高度、宽度
- 5个最顶级jQuery图表类库插件【jquery插件库】
- 基于jQuery实现动态搜索显示功能
- 用jquery获取select标签中选中的option值及文本
- 给jquery对象添加自定义方法和扩展jquery类
- flot - jQuery 图表插件(jquery.flot)使用
- jQuery验证控件jquery.validate.js使用说明+中文API - Rex.He - 博客园
- jQuery插件ajaxfileupload.js实现上传文件