O'Reilly logo

jQuery UI 1.8 The User Interface Library for jQuery by Dan Wellman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring sortable options

The sortables component has a huge range of configurable options, much more than any of the other interaction components (but not as many as some of the widgets). The following table shows the range of options at our disposal:

Option

Default value

Used to…

appendTo

"parent"

Set the element that helpers are appended to, during a sort.

axis

false

Constrain sortables to one axis of movement. Possible values are the strings x or y.

cancel

":input, button"

Specify elements that cannot be sorted, if they are the elements being sorted.

connectWith

false

Enable one-way sorting from the current list to the specified list.

containment

false

Constrain sortables to their container ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required