Autofill option for experimental messages, no results

I switched to jQuery UI 1.9 and you are having problems managing Autocomplete. As written here , they have added an option called messages , which actually displays "No Results" or the results of the results calculation under the control. The problem is that I cannot get information about her behavior in the manuals .

How to disable this option? thank you

+2
source share
2 answers

Actually, not in the API documentation until the date of my answer ... You can configure it like this:

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

NOTE. As the actimel user commented, the setup is fine, but does not hide it, since it is part of the accessibility function (for example, blind users).

+9
source

I searched this bit a bit and found the following:

The message is part of the jQuery UI accessibility functionality and should in fact never be displayed (apparently) and processed only by on-screen programs.

All your problems will disappear if you use some jQuery UI style files that hide these elements for you.

0
source

Source: https://habr.com/ru/post/958829/