title: Is there a way to autofill/text complete a form field, as user types, with the first Google Location returned value?
body: <p>I have a standard field in a form for location, using Google Places API. </p>
  
  <pre><code>&lt;div&gt;&lt;input class="input_standard fakeWaitlistCity" placeholder="Location" id="autocomplete"&gt;&lt;/input&gt;&lt;/div&gt;
  </code></pre>
  
  <p>As a user types, it shows suggestions below. Is there a setting to also fill in the field with the first returned value? </p>
  
  <p>This is what it currently looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/IQaqS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IQaqS.png" alt="enter image description here"></a></p>
  
  <p>The goal here is that a user can't just type "New York". If they stop typing, the whole field will already be filled with "New York, NY, USA".</p>
  
  <p>This is the ideal experience as a user types:</p>
  
  <p><a href="https://i.stack.imgur.com/Sbm8U.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Sbm8U.png" alt="enter image description here"></a></p>
  
  <p>Thank you!</p>
  
  <p>UPDATE - I've found <a href="https://ux.stackexchange.com/questions/20607/is-there-a-name-for-this-instant-filter-search-pattern">this discussion</a> about what it's called.</p>
  
  <p>Here is an image from the link above, of what I'm talking about:</p>
  
  <p><a href="https://i.stack.imgur.com/j5KdM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j5KdM.png" alt="enter image description here"></a></p>