admin管理员组

文章数量:1323723

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 acplished ?

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 acplished ?

Share Improve this question edited Mar 23, 2010 at 7:16 poke 388k80 gold badges591 silver badges628 bronze badges asked Mar 23, 2010 at 7:07 Stelios PhilippouStelios Philippou 1131 gold badge3 silver badges14 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 3

There are quite a lot different JQuery plugins for this purpose:

  • http://bassistance.de/jquery-plugins/jquery-plugin-autoplete/
  • http://code.google./p/jquery-autoplete/
  • http://www.pengoworks./workshop/jquery/autoplete.htm

Jquery autoplete is one of the best for you

http://docs.jquery./Plugins/Autoplete#source

http://docs.jquery./Plugins/Autoplete#demo

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

http://jqueryui./autoplete/

本文标签: autocompleteJavascriptautoload text box while typingStack Overflow