自动完成实验邮件选项,无结果 [英] Autocomplete experimental messages option, no results

查看:82
本文介绍了自动完成实验邮件选项,无结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我移至jQuery UI 1.9,并且在自动完成控件方面遇到了一些问题.按照此处的规定,他们添加了称为messages实际显示无结果"或结果计数信息.在手册中找不到关于其行为的任何信息的问题.

I moved to jQuery UI 1.9 and have some problems with Autocomplete control. As written here they added option called messages that actually shows "No results" or results count information under the control. The problem that I can't any info about its behaviour find in the manuals.

如何禁用该选项?谢谢

推荐答案

实际上不是

Indeed not in the API documentation to the date of my answer... You can customize it this way:

  jQuery(...).autocomplete({
     messages : {
      noResults : 'No results found.',
      results : function(count) {
        return count + (count > 1 ? ' results' : ' result ') + ' found';
      }
    },
  });

注意:正如用户actimel所说,自定义是可以的,但不要隐藏它,因为它是可访问性功能的一部分(例如,盲用户).

NOTE: As commented by user actimel, customising is ok but do not hide it as it is part of the accessibility feature (blind users for example).

这篇关于自动完成实验邮件选项,无结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆