Enabling jQuery Autocomplete on dynamically created input fields

前端 未结 5 1055
鱼传尺愫
鱼传尺愫 2021-01-05 15:23

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

5条回答
  •  我在风中等你
    2021-01-05 15:47

    I Updated the fiddle http://jsfiddle.net/r08m8vvy/5/

    You have to bind the autocomplete for new element

    $(wrapper).append($('').find(":text").autocomplete({
        source: availableAttributes
    }));
    

提交回复
热议问题