I have successfuly implemented Google Maps Places V3 autocomplete feature on my input box as per http://web.archive.org/web/20120225114154/http://code.google.com:80/intl/sk-SK/apis/maps/documentation/javascript/places.html. It works nicely, however I would love to know how can I make it select the first option from the suggestions when a user presses enter. I guess I would need some JS magic, but I am very much new to JS and don’t know where to start.
I have successfuly implemented Google Maps Places V3 autocomplete feature on my input box
Share
I had the same issue when implementing autocomplete on a site I worked on recently. This is the solution I came up with:
http://jsfiddle.net/dodger/pbbhH/