Description
var x = document.querySelectorAll('input[class^="wapf-input"][placeholder*="Enter a Location"]')[0].setAttribute("id", "address");
jQuery( function( $ ) {
function testMapAutoCompleteInit() {
var input = document.getElementById( 'address' );
if ( null === input ) {
return;
}
var autoComplete = new google.maps.places.Autocomplete(
input, {
types: [ 'geocode' ]
}
);
}
google.maps.event.addDomListener( window, 'load', testMapAutoCompleteInit );
} );
