title: Jquery autocomplete not firing on keyup unless focus changes
body: <p>I am using a jquery autocomplete and i have a keyup event for my textbox.
  When I enter in a letter the function is called but the box is not populated.</p>
  
  <p>Once I click away from the box and then click back into it the autocomplete works great. </p>
  
  <p>Really weird issue and I have no idea how to fix it. Any help would be appreciated.</p>
  
  <p>here's my code</p>
  
  <pre><code>$(document).ready(function(){
  
    var x;
    var output;
    x = document.getElementById('site').value; 
  
    $.getJSON(url,{field: "name",value: x, comparison: "LIKE"},  
      function(json){    
        //code to format output
        $("#site").autocomplete(output, json);   
    });  
  });
  
  
  
  &lt;input type ="text" size ="40" id="site"&gt;&lt;/input&gt; 
  </code></pre>