Good day. In general, I have the following task: there is a field in which the user enters a keyword. And there is a list with keywords, when a user enters a word, only those words that correspond to the entered word remain in the list.
The salt itself is that the list itself should be visible immediately in a separate <div>
and when the input of a keyword in <div>
begins, the number of words decreases and only the corresponding ones remain.
I roughly have an array of keywords for example:
var availableTags = [ "ActionScript", "AppleScript", "Asp", "BASIC", "C", "C++", ... и т.д.
here is the function $("#region").autocomplete({source: availableTags});
- which displays a list of keywords, but it displays it only when the field starts to fill. And displays in the form of a list for the field, but everything should be displayed in a separate <div>
... How can I do this? Thank?