Q:

How can I add a multiple-item autocompletion functionality for a textbox?

I want to have a textbox, and if I write some thing in it, it will provide me hints.
Like I write Lond in a "cities" text field, it will display London and if I click on it, a small box with a small cross having London should be added to the text field. Then I can repeat this to add more items.
It's the same functionality like in Stack Overflow tag edit control: If I write a tag name, it automatically searches and when I click, it is added.
I suppose it's some jQuery component - which one?

A:

Or, you could use this plugin:
http://loopj.com/jquery-tokeninput/
Here you have a demo:
http://loopj.com/jquery-tokeninput/demo.html
Hope this helps. Cheers

