GM autocomplete Dropdown
Copy Below Code
View As A Text File
Show Text Only
Show API
Edit Code
<script>
function initMapLoc() {
var options = {
componentRestrictions: {country: 'us'}
};
var autocomplete = new google.maps.places.Autocomplete(document.getElementById('s_id'),options);
}
</script>
<style type="text/css">
.pac-container:after {
background-image: none !important;
height: 0px;
}
</style>
<script src="https://maps.googleapis.com/maps/api/js?key=<?php echo GOOGLE_MAP_KEY;?>&libraries=places&callback=initMapLoc"></script>