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

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -