Just a simple example of Google Maps API and jQueryUI Dialog for fetching cities Tested with: jQuery 1.4.2 jQueryUI 1.8.4 Google Maps API v3