title: jQuery autocomplete ON multiple fields as well as TO multiple fields
body: <p>I'm trying to use autocomplete on a page which has a large number if input fields (generated from mySQL) which all need the same lookup.<br>
  A single autocomplete just uses  </p>
  
  <pre><code>$( "#surname" ).autocomplete({
  source: "search.php",
  </code></pre>
  
  <p>so I thought of doing..</p>
  
  <pre><code>$( "input" ).autocomplete({
  source: "search.php",
  </code></pre>
  
  <p>That's fine BUT my lookup query is returning a second variable which I need to put into another field on the form. The lookup field and the other field have related names e.f. bar2 and bar3email. Using the "input" option, how can I tell which field generated the lookup so I can then work out the field name where I want the second variable to go??  </p>
  
  <p>Trying to put it more simply, if I do an autocomplete in a field called 'bar2' and fill it with a name, I want the second returned variable (the relevant email) to be put in a field called 'bar2email'.  </p>
  
  <p>Thanks<br>
  Steve</p>