Stelios Philippou
Stelios Philippou

Reputation: 113

Javascript, autoload text box while typing

I am trying to do this but keep on failing.

I have a text box. I have also an array of cities, and i want, while typing to display the cities that the user should be able to select.

Like if the user is typing : Mu the drop down should display Mumbai \n MuMu ... etc Like the Tags below is doing !

Does someone have any ideas in how this can be accomplished ?

Upvotes: 2

Views: 7067

Answers (3)

yenssen
yenssen

Reputation: 1191

This function is part of the new version of Jquery You don't need any extra plugin to use it:

http://jqueryui.com/autocomplete/

Upvotes: 0

Sachin
Sachin

Reputation: 479

Jquery autocomplete is one of the best for you

http://docs.jquery.com/Plugins/Autocomplete#source

http://docs.jquery.com/Plugins/Autocomplete#demo

Upvotes: 3

Related Questions