title: AutoComplete text box with text value and id
body: <p>I want auto complete text box with text and id .I used the following code for auto complete in my application </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  var $auto=$.noConflict();
  $auto(document).ready(function(){    
      var data3 = ['niju','vivek','anil','Anil'];
      $auto("#employee").autocomplete(data3);
  
    });
  &lt;/script&gt;
  
  &lt;input   type="text" name="employee" id="employee" value="" class="inp-form"&gt; 
  </code></pre>
  
  <p>In this code we faced one drawback .There can be duplicate entry is possible since the same values as been repeated .</p>
  
  <p>How to get id value instead of text label ?</p>
  
  <p>Any suggestions are highly appreciated.</p>
  
  <p>Demo <a href="http://jsfiddle.net/subhash9/5c6ut/2/" rel="nofollow">Here</a></p>