title: Jquery autocomplete :: clear cache
body: <p>I am using Jquery autocomplet for two fields, Country and state.
  I want the states list according to country value and I am getting this too.</p>
  
  <p>My problem is that state auto complete also show the result of previous country seach. I know this is because jquery cache the result.</p>
  
  <p>Some one please guide me how to solve this</p>
  
  <p>My code is below</p>
  
  <pre><code>$('#khk_adressen_LieferLand').autocomplete("/countries/auto_complete_for_countries_list",{
  flushCache: function() {
       return this.trigger("flushCache");
    }
  });
  
  
  $('#khk_adressen_LieferPLZ').autocomplete("/postals/auto_complete_for_postals_list", {
                 flushCache: function() {
       return this.trigger("flushCache");
    },
    extraParams: {
        country_name: function() { return $("#khk_adressen_LieferLand").val(); }
    }
  
  });
  </code></pre>
  
  <p>Thansk in advance</p>