Reputation: 329
I am getting this error when trying to use ui-sortable.
jquery-3.1.0.min.js:2 Uncaught Error: cannot call methods on sortable prior to initialization; attempted to call method 'option'
Thanks in advance.
Upvotes: 3
Views: 3024
Reputation: 21
The meaning of your error is : $this.draggable('enable');
is called before $this.draggable();.
Check the execution flow of your program : make sure that you have indeed initialized the plugin (e.g : called $this.draggable();
) before trying to do anything with it.
Upvotes: 2