title: jquery autocomplete get selected item text
body: <p>I am wondering how to grab the selected item's text value on jquery autocomplete.</p>
  
  <p>I have initialised jquery as following :</p>
  
  <pre><code>$(document).ready(function (){
      $("input#autocomplete").autocomplete({
          source: postcodelist,
          select: function (event, ui) {
              AutoCompleteSelectHandler(event, ui)
          }
      });
  });
  </code></pre>
  
  <p>And I have created a function function AutoCompleteSelectHandler(event, ui) { }.</p>
  
  <p>Inside this function I want to some extra handling to feed data into correct textboxes but I can't figure out how to grab the text value of the selected item.</p>
  
  <p>I did google a bit and tried examples but I can't seem to get it working.</p>
  
  <p>Any help will be much appreciated.</p>
  
  <p>Thanks a lot advance.</p>