title: Autocomplete + Hidden Field in jquery?
body: <p>I am trying to do an autocomplete that will display something and then put something else in an hidden field on selection.</p>
  
  <p><em>Example:</em></p>
  
  <p>In my database I have <code>{[1, 'john'], [2, 'bob'], [3, 'john']}</code></p>
  
  <p>If the user type '<code>jo</code>' and clicks on the first '<code>john</code>', I have no way of knowing on what entry he clicked. So I need some kind of associated hidden field to handle this. </p>
  
  <p>Is there a jquery plugin that does this or do I have to create my own? </p>
  
  <p>I already started and it's working fine with local values, but if I have to get them asynchronously it doesn't work yet. I'm basing mine on <a href="http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/" rel="nofollow noreferrer">this plugin from bassistance</a>. I guess I could get my hands in the code and change the way they handle the responses, but it would save me some time if something was already done !</p>