Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Selected items appear again in comma separated list autocomplete #13

Open
mayankk4 opened this issue Nov 29, 2011 · 1 comment
Open

Comments

@mayankk4
Copy link

In a comma separated list, with auto-completion, after I have already selected an option it shows up again in autocomplete.

eg. If I have already chosen United States as one of my Favourite countries then it should not show up again in autocomplete but it does appear again.

@laktek
Copy link
Owner

laktek commented Dec 4, 2011

You can keep the potential results in an array and remove the item which was selected in the itemSelect event handler. Then use the filter function of the plugin to look for matches in that array (Check the examples 5 & 6 in demo for the use of filter function and itemSelect event).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants