Reputation: 322
Currently I am able to trigger auto-complete using
options: {
trigger: "@",
allowDuplicates: true
},
I want when any letter in any word in the array is typed to cause autocomplete. I have tried to use an alphabet character e.g.
options: {
trigger: "k",
allowDuplicates: true
},
which is not working. Find My Jsfiddle
I want autocomplete every time one starts typing. I have tried other plug-ins and the problem is you can't tag more than 1 item.
Here is the documentation of the plugin: https://github.com/Hawkers/triggeredAutocomplete which is derived from jQueryUI autocomplete.
Upvotes: 1
Views: 461
Reputation: 61984
I think you should use the regular jQueryUI autocomplete plugin (or any other autocomplete plugin you choose), which will normally trigger when anything is typed, and not this derivation which actually calls itself "triggeredAutocomplete". and whose entire purpose is to trigger the autocomplete only on certain characters, so that other text can be entered into the textbox as well without constantly triggering an autocomplete query.
https://jqueryui.com/autocomplete/#multiple shows you a demo and code for selecting multiple items using the standard jQueryUI autocomplete.
The widget you're using now is designed for a totally different use case.
Upvotes: 1
Reputation: 468
Just use the regular jQueryUI autocomplete. https://jqueryui.com/autocomplete/
Upvotes: 0