autocomplete “is not a function”

前端 未结 5 1469
攒了一身酷
攒了一身酷 2021-02-19 06:45

We\'ve tested the Jquery UI (jquery-ui-1.8.10.custom.min.js) Autocomplete function in a simple HTML page which worked.

We then copy the same code into an Asp.net User C

5条回答
  •  闹比i
    闹比i (楼主)
    2021-02-19 07:17

    I had this issue and what was happening was my jQuery file was loading twice. Pretty much this was in my head:

    
    
    

    And then I had an AJAX call that loads more parts of my document and there was another:

    
    

    script tag in my AJAX results and I was $.hmtl() my results to my document. By doing this we are pretty much redefining all of the var thatjquery-ui.min.js altered or took advantage of.

提交回复
热议问题