Wednesday, April 28, 2010

US Cities Autocomplete using jQuery plugin

Simple, quick demo for us city autocomplete:

There are a lot of examples online, but sometimes they are not what you are looking for:

Here is another example using javascript arrays to do autocomplete. Each state is javascript file and contains an array of city list for that specific state.




(US Cities autocomplete), jQuery autocomplete plugin has similar demo, but as a single file, different format, check out this demo:
Check US cities autocomplete

Please note that the cities(javascript files for each state) are for demo use only, for any commercial use, please contact:
http://www.maxmind.com/


The JavaScript files for each state do not come like this, I manually extracted this info(city names for each state) from their cvs file and formatted it into an javascript array.


Official places for docs, downloads, demos, and etc.:
They provide with very nice demos and different solutions.

Plugins web site:
Authors demo page and more

jQuery web site:
jQuery plugin autocomplete

No comments:

Post a Comment