title: Google map input box autocomplete is not working for me
body: <p>This is my code. Here map is working fine for me, issue only for input box autocomplete is not working for me.please guide me to fix this issue.................................................................................</p>
  
  <pre><code> **HTML**   
  
  
  &lt;input type="text"name="newWardName" id="newWardName" placeholder="Enter Ward Name"/&gt;
  &lt;div&gt;
          &lt;div id="googleMap" &gt;&lt;/div&gt;
          &lt;input id="latitudeId" name="latitudeName" placeholder="Latitude"/&gt;
          &lt;input id="longitudeId" name="longitudeName" placeholder="Longitude"/&gt;
      &lt;/div&gt;
  
  **JavaScript**
  function initialize()
      {
          geocoder = new google.maps.Geocoder();
          var myCenter=new google.maps.LatLng(12.961735, 77.588195);
          var mapProp = {
              center:myCenter,
              zoom:12,
              mapTypeId:google.maps.MapTypeId.ROADMAP
          };
          map = new google.maps.Map(document.getElementById("googleMap"),mapProp);
  
          var input = document.getElementById('newWardName');
          var autocomplete = new google.maps.places.Autocomplete(input, {
              types: ["geocode"]
          });
          autocomplete.bindTo('bounds', map);
          var infowindow = new google.maps.InfoWindow();
  
          google.maps.event.addListener(map, 'click', function(event) {
  
              placeMarker(event.latLng);
              console.log("on click of map", (event.latLng));
          });
      }
  
      var marker;
      function placeMarker(location) {
          if (!marker) {
              marker = new google.maps.Marker({
                  position: location,
                  map: map
              });
          } else {
              marker.setPosition(location);
          }
          document.getElementById("latitudeId").value = location.lat();
          document.getElementById("longitudeId").value = location.lng();
      }
  </code></pre>
  
  <p>Thanks in advance
  Math</p>