Michał Rybak
Michał Rybak

Reputation: 8706

jQuery UI draggable/sortable not working in jsFiddle

I'm trying to run this example in jsFiddle.

This is what I have now:

Error I get is Uncaught TypeError: Object [object Object] has no method 'sortable'.

Upvotes: 1

Views: 1343

Answers (1)

Michał Rybak
Michał Rybak

Reputation: 8706

It seems to be a bug in jsFiddle, I've reported it already.

You can fix that the following way:

  • do not include jQuery UI under Frameworks & Extensions tab
  • include both CSS and JS for jQuery UI from CDN under External Resources tab

Working demo.

EDIT I've discovered that only using 'edge' (2.x or 1.x) versions of jQuery causes this issue. Original example working with other jQuery version.

Upvotes: 3

Related Questions