title: How to detect when user ignores jquery autocomplete suggestions
body: <p>We need the ability to call a handler if a user enters text <em>without</em> choosing from a set of autocomplete suggestions.</p>
  
  <p>In our case it doesn't matter if the entered text matches any autocomplete values or not - we only care if the user clicks/selects an autocomplete value, <strong>or not</strong>.</p>
  
  <p>The way our form works is that a user starts entering a contact's last-name and gets presented with autocomplete suggestions including the contact's full-name and company.  If the user selects one of the autocomplete suggestions, we populate multiple fields.  That's all working fine.</p>
  
  <p>The new requirement is that if the user does NOT select one of the suggestions, we need to blank out multiple fields - which we'd like to implement using a handler called from an autocomplete library.</p>
  
  <p>Looking at <a href="https://stackoverflow.com/questions/328430/jquery-autocomplete-determining-if-entered-text-is-not-a-match">previous</a> <a href="https://stackoverflow.com/questions/797969/jquery-autocomplete-verify-selected-value">answers</a>, it doesn't look like we can do this with <a href="http://plugins.jquery.com/project/autocompletex" rel="nofollow noreferrer">Jörn Zaefferer's autocomplete plugin</a>, but if you have a patch or some idea how to implement the function, this is the library we'd try and push it into.</p>