title: stop input clearing onFocus
body: <p>I have this auto-suggestion application for emails. it all works well, except when I click outside the input field and then click back in it clears what was there 'onFocus'. any Ideas how I can stop this from happening?     </p>
  
  <pre><code>function suggest(inputString){
      if(inputString.length == 0) {
        $('#suggestions').fadeOut();
      } else {
      $('#email').addClass('load');
          $.post("auto.php", {queryString: ""+inputString+""}, function(data){
              if(data.length &gt;0) {
                  $('#suggestions').fadeIn();
                  $('#suggestionsList').html(data);
                  $('#email').removeClass('load');
            }
        });
     }
  }
  
   function fill(thisValue) {
      $('#email').val(thisValue);
      setTimeout("$('#suggestions').fadeOut();", 600);
  }
  
  &lt;input type="text" id="email" onKeyUp="suggest(this.value);" onClick="fill();" /&gt;
  </code></pre>