首页 > 代码库 > jquery.min.js v1.10.3版本autocomplete方法会在text前添加搜索出多少项的文本信息 要去除
jquery.min.js v1.10.3版本autocomplete方法会在text前添加搜索出多少项的文本信息 要去除
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(){}}});
--------------此方法能解决
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。