title: jQuery Autocomplete: Event-select
body: <p>I am trying to submit a form when an item is selected from the menu. I set class on the search form and I am using the event select for it which is found here: <a href="http://docs.jquery.com/UI/Autocomplete#event-select">http://docs.jquery.com/UI/Autocomplete#event-select</a></p>
  
  <p>Now, when you select an item using the keyboard (UP and Down), it works. But if you select an item using the mouse, it gives you the value which is previously typed.</p>
  
  <p>Check this screenr: <a href="http://www.screenr.com/7T0s">http://www.screenr.com/7T0s</a></p>
  
  <p>This is what I use for submitting:</p>
  
  <pre><code>$("#searchform-input").autocomplete({
      select: function (a, b) {
          $(".searchform1").submit()
      }
  });
  </code></pre>