The jQuery UI autocomplete multiple example provided here allows you to add the same item more than once.
How do I prevent this from happening?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you take the example provided by jQuery UI here, add the following line within the select function of the autocomplete:
This basically removes the item that has just been selected from the list of available tags.
The select function you end up with should look like this: