How do I make a built-in jquery autocomplete that starts with a specific character record and looks for a modified ui.term

I have a text box in which I write notes. When I enter a specific character, such as "@", I want to create a built-in autocomplete JQuery that looks for a term that matches the characters after "@".

An example of textarea input might be:

Please call @John Citizen regarding his order.

Any ideas?

+3
source share
1 answer

Well, this is not necessarily not so simple, but here is how I would approach this problem.

, jQuery . .

, , autocompletesearch, , @ , , false, .

source , textarea , @, ,

, autocompleteselect , , . autocompletefocus , . combobox .

+1

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


All Articles