码迷,mamicode.com
首页 > Web开发 > 详细

jquery.min.js v1.10.3版本autocomplete方法会在text前添加搜索出多少项的文本信息 要去除

时间:2014-05-15 09:37:18      阅读:464      评论:0      收藏:0      [点我收藏+]

标签:style   class   code   c   ext   color   

http://stackoverflow.com/questions/13011127/how-to-remove-change-jquery-ui-autocomplete-helper-text

 

How to remove/change JQuery UI Autocomplete Helper text?

 

It seems that this is a new feature in JQuery UI 1.9.0, because I used JQuery UI plenty of times before and this text never poped up.

Couldn‘t find anything related on the API documentation.

So using an basic autocomplete example with local source

$("#find-subj").autocomplete({
    source: availableTags
});

When the search matches it shows this related helper text:

‘1 result is available, use up and down arrow keys to navigate.‘

How can I disable it in a nice way, not by removing it with JQuery selectors.

7 Answers

 
 
 

 

I know this has been asnwered but just wanted to give an implementation example:

$("#find-subj").autocomplete({
    source: availableTags,
    messages:{
        noResults:‘‘,
        results:function(){}}});

--------------此方法能解决

jquery.min.js v1.10.3版本autocomplete方法会在text前添加搜索出多少项的文本信息 要去除,布布扣,bubuko.com

jquery.min.js v1.10.3版本autocomplete方法会在text前添加搜索出多少项的文本信息 要去除

标签:style   class   code   c   ext   color   

原文地址:http://www.cnblogs.com/jcz1206/p/3729017.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!