user2184835 user2184835 - 2 months ago 13
Javascript Question

Enabling jQuery Autocomplete on dynamically created input fields

I've read almost every article i could find on how to accomplish this, but i'm still failing miserably. mostly because i'm an amateur at jQuery/Javascript.

I have a website that contains one input element. I've managed to get jQuery Autocomplete working nicely on this. The problem is that when i dynamically add additional elements using the .append method, these new elements do not work with autocomplete.

See jsfiddle:

see jsfiddle for full code sample

Thankyou in advance for your help!! :)


You must bind autocomplete after adding new elements

                source: availableAttributes

See example: