title: jQuery autocomplete on multiple fields
body: <p>Surprisingly, I didn't find any answers to my question.</p>
  
  <p>I want to make a form on jQuery with two fields.</p>
  
  <ol>
  <li>City Code.</li>
  <li>City Name.</li>
  </ol>
  
  <p>and when I enter a city code and go out of the field.
  I want an autocomplete on the city name.</p>
  
  <p>I Installed the jQuery <a href="http://docs.jquery.com/Plugins/Autocomplete" rel="nofollow noreferrer">Autocomplete plugin</a>.</p>
  
  <p>and I have the following code :</p>
  
  <pre><code>$(document).ready(function() {
      $("#field_localite").autocomplete('admin/ajax/npa', {
         extraParams: {
             npa: function() { return $("#field_npa").val(); }
         }
      });
  
      $("#field_npa").blur(function() {
          $("#field_localite").search();
      });
  });
  </code></pre>
  
  <p>The problem is that the .search() method. doesnt launch the autocomplete.</p>
  
  <p>I'm looking for a method to trigger this autocomplete search on the field.</p>
  
  <p>do you know a way or a plugin able to do this search ?</p>
  
  <p>thanks in advance</p>
  
  <p>BTW : the PHP code behin is totally tested and works, it returns the data when doing the call.</p>