title: Customised jQuery autocomplete
body: <p>I have a customised jQuery autocomplete control that is declared something like this.</p>
  <pre><code>$('#SystemCode_Autocomplete').autocomplete({
      source: [{&quot;label&quot;:&quot;Access&quot;,&quot;value&quot;:0},{&quot;label&quot;:&quot;Documentum&quot;,&quot;value&quot;:0}], //move values
      minLength: 1,
      change: function(event, ui) {// some function},
      select: function(event, ui) {// some function}
  });
  </code></pre>
  <p>The change and select events are custom.
  The problem is if I type something into the textbox then click the submit button (i.e. no tab out, or lost of focus), or if I press the  key to submit after typing into the text box, the change event isn't fired and it has to be before I submit.</p>
  <p>I was hoping to do it without putting javascript behind the submit button, and to ideally do it from within the autocomplete control itself. I tried adding the change to the blur event.</p>
  <pre><code>${'foo').blur(function() { $('bar').trigger('autocompletechange');
  // or
  ${'foo').blur(function() { $('bar').change();
  </code></pre>
  <p>But none of them have worked, anyone have any ideas?</p>