Using autocomplete with input created by appendTo

Using autocomplete with input created by appendTo

Hi

I have created a script to add a text input field to a form using appendTo once a link has been clicked.

I am trying to use autocomplete on the input field but I am not having any luck.

Any information as to why and how I can fix the problem would be appreciated!