I searched everywhere, but I can not find any help ...
I have several text fields that are dynamically created through JS, so I need to bind all their classes to autocomplete. As a result, I need to use the new .live () parameter.
As an example, we can associate all elements with the .foo class now and in the future:
$('.foo').live('click', function(){ alert('clicked'); });
It accepts (and behaves) the same as .bind (). However, I want to link autocomplete ...
This does not work:
$('.foo').live('autocomplete', function(event, ui){ source: 'url.php'
How can I use .live () to bind autocomplete?
UPDATE
Found this out with Framer:
$(function(){ $('.search').live('keyup.autocomplete', function(){ $(this).autocomplete({ source : 'url.php' }); }); });
jquery autocomplete binding
sethvargo Dec 29 '10 at 3:19 2010-12-29 03:19
source share