The autocomplete () Method
autocomplete () method can be
used in two forms:
$(selector, context).autocomplete (options)
$(selector, context).autocomplete ("action", params)
The autocomplete (options) Method
method declares that an
HTML element must be managed as an input field that will be displayed
above a list of suggestions. The
options parameter specifies the behavior of
the list of suggestions when the user is typing in the input
The operation of autocompletion is as follows: from the characters
introduced in the input field, a match is made in the specified source
options.source). Matching can be
done with any character from the source, not just the beginning of it.
Thus, if one looks for the letter “a,” it does not have to be located at
the beginning of words, but can be located in the middle.
Table 9-1 details the options that are available for managing autocompletion.
Table 9-1. Options for managing autocompletion
When set to
Indicates the data source to use for the list of suggestions. Data can be local (already known in the program) or remote (retrieved from the server).
Minimum number of characters to enter in the field to start the display of the list of suggestions. ...