Selected items appear again in comma separated list autocomplete #13

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

Comments

Projects
None yet
2 participants

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.

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 join this conversation on GitHub. Already have an account? Sign in to comment