I\'m trying to create a generic autocomplete script using jQueryUI. The autocomplete should work for every:
$(this) will come from your newly created function and thus not work. Move your id declaration above source and it should work.
$(this)
id
source