title: jQuery autocomplete with many inputs - django-dynamic-formset
body: <p>I'm using jQuery autocomplete feature (<a href="http://jqueryui.com/autocomplete" rel="nofollow">http://jqueryui.com/autocomplete</a>) and Django dynamic-formset (<a href="http://code.google.com/p/django-dynamic-formset/" rel="nofollow">http://code.google.com/p/django-dynamic-formset/</a>).
  One of my formset fields needs to use autocomplete, so I attach it using (simplified):</p>
  
  <pre><code>$('input[name$=select]').autocomplete({source:'my_url/', minLength: 3});
  </code></pre>
  
  <p>I call this on document ready and it works fine (gets data from ajax). However, if I add new row with django-dynamic-formset and handle its 'added' event with:</p>
  
  <pre><code>function(row){
      $(row).find('input[name$=select]').autocomplete({source:'my_url/', minLength: 3});
  }
  </code></pre>
  
  <p>it doesn't work with newly added rows. What's wrong?</p>
  
  <p>UPDATE:
  Tried to use classes instead - no result
  Tried to use on()/live() - no result
  Tried to destroy autocomplete after new row is added - no result (it destroys, but does no create).</p>