- Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
Hi,
thanks for the great library!
I've tried the example from the readme:
$('#autocomplete').autocomplete({ lookup: function (query, done) { // Do Ajax call or lookup locally, when done, // call the callback and pass your results: var result = { suggestions: [ { "value": "United Arab Emirates", "data": "AE" }, { "value": "United Kingdom", "data": "UK" }, { "value": "United States", "data": "US" } ] }; done(result); }, onSelect: function (suggestion) { alert('You selected: ' + suggestion.value + ', ' + suggestion.data); } });However, if I enter for example Kingdom, the other two suggestions (which have nothing to do with the query) are still visible.
Is there an option available to hide these invalid suggestions?
blu3r4y and zephyrous
Metadata
Metadata
Assignees
Labels
No labels