title: Filter Jquery AutoComplete by multiple values of an array of objects
body: <p>I want to set up autocomplete plugin for selecting only the valid employees in the list. I have an array of Employee objects, having EmployeeID and EmployeeName. Currently I have loaded the autocomplete for the EmployeeName by copying all the Employee's EmployeeName in an array and feeding it to setup the autocomplete plugin. </p>
  
  <pre><code>var employeeNames = new Array();
  for (var i = 0 ; i &lt; employees.length ; i++)
  {
      employeeNames[a] = employees.Employee[a].Name;
  }
  $("#txtEmployeeName").autocomplete(employeeNames, {
      multiple: true,
      mustMatch: true,
      autoFill: true
  });
  </code></pre>
  
  <p>It will do the work, but WHAT I WANT IS, that if the user wants to enter EmployeeID in this textbox, it loads the suggestion filtering on EmployeeID too, although it will show the EmployeeNames in the suggestions. Is there any way I could implement that, I remember I saw it somewhere but dont recall the website.</p>