title: need gmail like functionailty - jquery autocomplete to include names and email addresses - in string searching
body: <p>I recently asked this question and got back a great solution using jquery for autocomplete:</p>
  
  <p><a href="https://stackoverflow.com/questions/1297518/need-a-good-way-for-user-to-select-to-for-email-sending">Need a good way for user to select &quot;To&quot; for email sending</a></p>
  
  <p>The solution was to use this syntax:</p>
  
  <pre><code>$("#suggest3").autocomplete(someArray, {
      multiple: true,
      mustMatch: true,
      autoFill: true
  </code></pre>
  
  <p>});</p>
  
  <p>i now have autocomplete on a list of email addresses and i need to take it one step further to map onto gmail like functionality where i include both the "real" name and the email address in the list so users can enter either the name or the email address and it will find the entry:</p>
  
  <p>So the list would look similar to this and the user can search by typing "Firs . . ." or "emailAdd..."</p>
  
  <pre><code>"First Last" &lt;emailAddress&gt;   
  "First1 Las1t" &lt;emailAddress1&gt;   
  "First2 Last2" &lt;emailAddress2&gt;   
  </code></pre>