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.

这似乎是JQuery UI 1.9.0中的一个新特性,因为我之前多次使用JQuery UI,而这个文本从未弹出。

Couldn't find anything related on the API documentation.

在API文档中找不到任何相关内容。

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.'

“1结果可用,使用上下箭头键进行导航。”

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

我怎样才能以一种好的方式禁用它,而不是通过使用JQuery选择器来删除它。

10 个解决方案

#1


146

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

我知道这个问题已经讨论过了,但我只想举一个实现的例子:

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

更多相关文章

  1. jQuery自动完成不适用于多个文本输入
  2. 如何使用jQuery UI插件使html文本框可拖动和调整大小?
  3. 在使用javascript将信息输入到输入字段时填充文本区域
  4. 浏览器Bug在输入上显示时间文本
  5. 最简单jquery.ajax+php例子(对话框显示文本框输入内容),以小见大
  6. 从零搭建个人博客(3)-如何在webpack环境下配置jquery和富文本编
  7. day049--jQuery文档操作示例
  8. Yii就地crud文本小部件
  9. jQuery自动完成在AutoPostBack上丢失文本

随机推荐

  1. k近邻——kNN回归
  2. Mac中升级Python2.7到Python3.5步骤
  3. 在save方法中创建两个对象
  4. 【小白自学笔记】【机器学习实战】【Pyth
  5. 使用多处理Pool.map()时不能pickle
  6. 参与一个Python的开源项目Python-QQ
  7. 初学者的Selenium自动化测试指南,基于Pyth
  8. python多版本共存配置
  9. Tensorflow部分函数功能
  10. python爬网页,做k线图