title: autocomplete from rest api
body: <p>I'm using autocomplete function for auto suggetion and I'm using the rest api url as a data source but it is suggesting the all label for example if I enter <strong><code>I</code></strong> so it should display only that label which contain <strong><code>I</code></strong> but it is displaying all the label even when I type any keyword it is showing the all label here is my input text</p>
  
  <pre><code>&lt;input type="text" id="name" /&gt;
  &lt;input type="text" id="value" /&gt;
  </code></pre>
  
  <p>here is my java script and jquery</p>
  
  <pre><code>$(function(){
  $("#name").autocomplete({
  source:"http://localhost:8080/JsonRestfull/countries",
  dataType: "json",
  select: function (event, ui) {
  $("#name").val(ui.item.label);
  $("#value").val(ui.item.value);
  return false;
  }
   });
  });
  </code></pre>
  
  <p>and the<code>http://localhost:8080/JsonRestfull/countries</code> contain the following data</p>
  
  <pre><code>[{"label":"IND","value":"India"},{"label":"CHN","value":"China"},{"label":"NEP","value":"Nepal"},{"label":"BHU","value":"Bhutan"}]
  </code></pre>