jQuery Autocomplete .data(“autocomplete”) is undefined

前端 未结 6 1645
盖世英雄少女心
盖世英雄少女心 2021-02-03 20:58

When I try to implement auto-complete using the code below I get an error stating:

.data(\"autocomplete\") is undefined

How ever if I remove th

6条回答
  •  半阙折子戏
    2021-02-03 21:19

    data('ui-Autocomplete') resolved my troubles. I think it's from jquery 1.7 with jquery-ui 1.8. data('autocomplete') was ok. The same script with a recent version of these files doesn't work.

提交回复
热议问题