I\'m trying to create a generic autocomplete script using jQueryUI. The autocomplete should work for every:
Marwelin is correct. 'this' will reference the newly created function you are nested within. This is easily fixable by creating the var id outside the function and using it within the function.
id