SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Evangelist
    Join Date
    Jan 2005
    Location
    UK
    Posts
    539
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Looking for country and city inputs, both autocomplete and city dependent on country.

    Hi,

    I've been looking for an eternity for some js that would allow me to have 2 input fields:

    country
    city

    When 3+ letters are typed in country, autocomplete kicks in.
    Then, 3+ letters are typed in city, autocomplete displays options dependent on the country.

    Is there anything out there already?

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,526
    Mentioned
    83 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by skyline View Post
    Is there anything out there already?
    This example looks to be pretty comprehensive.

    http://www.geobytes.com/free-ajax-cities-jsonp-api.htm
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •