title: jQuery UI autocomplete with item and id
body: <p>I have the following script which works with a 1 dimensional array.  Is it possible to get this to work with a 2 dimensional array?  Then whichever item is selected, by clicking on a second button on the page, should display the id of whichever item is selected.</p>
  
  <p>This is the script with the 1 dimensional array:</p>
  
  <pre><code>var $local_source = ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"];
  $("#txtAllowSearch").autocomplete({
      source: $local_source
  });
  </code></pre>
  
  <p>This is the script for the button to check the id, which is incomplete:</p>
  
  <pre><code>$('#button').click(function() {
      // alert($("#txtAllowSearch").someone_get_id_of_selected_item);
  });
  </code></pre>