jQuery-Smart-Auto-Complete
jQuery-Smart-Auto-Complete copied to clipboard
Selected items appear again in comma separated list autocomplete
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.
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).