asp.net - Filling City From Google Api Only -
i have asp textbox. want integrate cities of specific country , provide autocomplete feature in it. accomplished using this.
var options = { types: ['(cities)'], componentrestrictions: { country: "in" } }; new google.maps.places.autocomplete(document.getelementbyid('txtplaces'),options);
now want provide validation such user has select city auto complete , cannot enter other unknown city.
the validation should provide indication user such he/she knows value entered correct , can move on fill next values
please me out on this. thanx in advance.
observe place_changed
-event of autocomplete, when place has geometry
-property it's valid place based on suggestions
Comments
Post a Comment