Conflict with google autocomplete
Hello,
i have put this code on my wrapper.php in head but it only works if your plugin is unactive , do you have a idea? i think it is the call of the google api but i can't resolve the problem.
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/
js?libraries=places&sensor=false"></script>
<script>
function initAutocomplete() {
var autocompleteOptions = {types: ['(cities)'],componentRestrictions: {country: 'BE'}};
var input = document.getElementById('search-location');
console.log(input);
var autocomplete = new google.maps.places.Autocomplete(input,autocomplete Options);
}
google.maps.event.addDomListener(window, 'load', initAutocomplete);
</script>
</head>
<body <?php body_class(); ?> onload="initAutocomplete()" itemscope itemtype="http://schema.org/WebPage" >
Thanks