Can't get $(this) working in jQueryUI autocomplete

后端 未结 5 1482
滥情空心
滥情空心 2020-12-25 11:21

I\'m trying to create a generic autocomplete script using jQueryUI. The autocomplete should work for every:



        
5条回答
  •  一整个雨季
    2020-12-25 11:53

    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.

提交回复
热议问题