title: Triggering Google Places Autocomplete Places places changed when text input same value of one of the selections
body: <p>I'm using the Google Places Autcomplete API and jQuery. It's basic functionality is working fine. What I would like to do is if someone types something into the autocomplete that is exactly the same as one of the selections I would like that item to be selected and the <code>place_changed</code> event to fire. This is because I have some logic in the places changed listener that I need to trigger. The idea is that if someone types in the exact same text as one of autocomplete options then it should act as if someone clicked on the option.</p>
  
  <p>This is what I've tried, where userLocation is the input:</p>
  
  <pre><code>$("#userLocation").keyup(function(e){
      //if the text is at least 4 chars long
      if($("#userLocation").val().length &gt; 4)
      {
          //iterate through each of the autocomplete options
          $(".pac-item").each(function(){
              if($(this).text() == $("#userLocation").val() )
              {
                  //does not do what I need it to
                  $(this).trigger("place_changed");
              }
          });
      }
  });
  </code></pre>
  
  <p>I've also tried replacing the <code>trigger("place_changed")</code> with <code>.trigger("click")</code> but to no avail. </p>
  
  <p>Has anyone does this before? Could anyone suggest another way to try and make this work? Any advice would be very much appreciated, thanks!</p>