title: Jquery Autocomplete Select TypeError: ui.item undefined
body: <p>I am using jquery ui 1.10.3 and jquery 2.0.3.
  I am trying to use the autocomplete function to change text of another text box on selecting an option from the suggested options from autocomplete.</p>
  
  <p>Below is my code for the autocomplete function. I do get the results as needed but when I select an option from it, I get the <strong>TypeError: ui.item is undefined</strong> error.</p>
  
  <pre><code>&lt;script language="javascript"&gt;
  $(document).ready(function(){
      $('#item_code').autocomplete({
      source: "http://localhost/test/item/search_item",
          minLength: 1,
          select: function( event, ui ) {
              $( "#item_description" ).val(ui.item.description );
              return false;
          }
      }).data("ui-autocomplete" )._renderItemData = function( ul, item ) {
          return $( "&lt;li&gt;&lt;/li&gt;" )
              .data( "item.autocomplete", item )
              .append( "&lt;a&gt;" + item.value + " - " + item.description + "&lt;/a&gt;" )
              .appendTo( ul );
      };
  });   
  &lt;/script&gt;
  </code></pre>
  
  <p>I have scoured the net but I have come to a point where I find banging my head on the table.
  Any help is greatly appreciated.</p>