title: autocomplete run only once when page load or on one letter is typed but only once
body: <p><a href="http://jqueryui.com/autocomplete/#remote" rel="nofollow">http://jqueryui.com/autocomplete/#remote</a></p>
  
  <pre><code>      $(document).ready(function() {
          var Employees = function(request, response) {
              var value1 = document.getElementById('&lt;%= txtEmployeeID.ClientID %&gt;').value.split(" ");
              $.ajax({
                  type: "POST",
                  contentType: "application/json; charset=utf-8",
                  url: "WebService.asmx/GetEmployees",
                  data: "{'keywords':'" + value1 + "'}",
                  dataType: "json",
                  async: true,
                  success: function(data) {
                      response(data.d);
                  },
                  error: function(result) {
                      //alert("Error");
                  }
              });
          }
          $('#&lt;%= txtEmployeeID.ClientID %&gt;').autocomplete({
              autoFocus: true, source: Employees
          });
      });
  </code></pre>
  
  <p>this is code for autocomplete to get value from database.</p>
  
  <p>this runs when each letter is typed and then values are filtered .</p>
  
  <p>i am looking for autocomplete that will load all employee name in var Employee at start then no need to retry filtering autocomplete will do it by autometically filter as a functionality.</p>