title: Can't get $(this) working in jQueryUI autocomplete
body: <p>I'm trying to create a generic autocomplete script using jQueryUI. The autocomplete should work for every:</p>
  
  <pre><code>&lt;input type='text' class='autocomplete' id='foo'/&gt;
  &lt;input type='text' class='autocomplete' id='bar'/&gt;
  ...
  </code></pre>
  
  <p>Now I'm trying to access 'foo' or 'bar' in the source function using $(this), but when alerting I always get 'undefined'.</p>
  
  <pre><code>$('input.autocomplete').autocomplete({
      source: function(req, add){
          var id = $(this).attr('id');
          alert(id);
      }
  });
  </code></pre>
  
  <p>What am I doing wrong?</p>