title: How to get selected value in jQuery autocompleter
body: <p>I am using jQuery auto completer and getting the values from a jsp.When i specify some source i can use the following code to get the selected value.</p>
  
  <pre><code>   $("#autocomplete").autocomplete({
          source: source,
          select: function (event, ui) {
              alert(ui.item.value);
          }
      });
  </code></pre>
  
  <p>When i use like this </p>
  
  <pre><code> $("#query").autocomplete("list.jsp");
  </code></pre>
  
  <p>How i can use the select event.Thanks in advance....</p>