title: jQuery autocomplete: How to show an animated gif loading image
body: <p>I'm using the jQuery <a href="http://docs.jquery.com/Plugins/Autocomplete" rel="noreferrer">AutoComplete</a> plugin combined with ajax. Do you know how can I show a progress indicator while the ajax search is performed?</p>
  
  <p>This is my current code.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $("#autocomplete-textbox").autocomplete('http://www.example.com/AutoComplete/FindUsers');
  &lt;/script&gt;
  
  &lt;div&gt;
      &lt;input type="text" id="autocomplete-textbox" /&gt;
      &lt;span class="autocomplete-animation"&gt;&lt;img id="ajaxanimation" src="../img/indicator.gif")"/&gt;&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The FindUsers URL returns a user list in the content.</p>