title: jQuery Autocomplete - Show Data Based on Selection
body: <p>I have a standard jQuery autocomplete setup similar to the below:</p>
  
  <pre><code>$("input#autocomplete").autocomplete({
      source: source,
      minLength: 5 ,
      select: function( event, ui ) {
           alert(ui.item.value);
      }
  });
  </code></pre>
  
  <p>What I would like is, when the value is chosen, a data-table within the page appears and get populated with data from a database using the value as a search parameter. </p>
  
  <p>So for instance if I select "<code>RED</code>", the table would then show and display data from a query such as <code>SELECT * FROM TABLE WHERE COLUMN='RED'</code></p>
  
  <p>The query is simplified but can anyone please point me in the right direction?</p>