jQuery .sortable is not a function

前端 未结 5 1565
南方客
南方客 2020-12-11 00:24

Even though I\'ve followed the directions in the jQuery UI documentation, I\'m getting the error that .sortable is not a function.
Here is my code:



        
5条回答
  •  盖世英雄少女心
    2020-12-11 01:02

    I had the same issue when a page using the sortable() function was required by a main php page. Adding the following code within the head of the main page wasn't sufficient. Adding it also at the beginning of the required page (inside the body in my case) fixed everything.

    
    

提交回复
热议问题