title: JQuery Autocomplete Form Submission
body: <p>I have managed to implement the <code>jQuery</code> autocomplete plugin on my website but was wondering if it is possible to make the form auto-submit once the user selects an item from the search. I have the following set-up:</p>
  
  <p>HTML Form:</p>
  
  <pre><code>&lt;form class="quick_search" action="../include/search.php" method="post"&gt;
      &lt;input type="text" name="search" id="search" value="Search..."&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>JavaScript:</p>
  
  <pre><code>$().ready(function() {
      $("#search").autocomplete("../include/search.php", {
          width: 350,
          selectFirst: false
      });
  });
  </code></pre>
  
  <p>I have also included the <code>jQuery</code> and <code>Autoplugin</code> scripts. The search.php file contains a list of the search options.</p>
  
  <p>At the moment, the search works correctly and I just need it to submit the form once an item is selected from the list that appears. I tried to use the onClick and onSelect options within the search field but neither of these worked correctly. </p>
  
  <p>Any help would be much appreciated (I don't really understand js)! Thanks.</p>