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

Reacting to sortable events

In addition to the already large list of configurable options defined in the sortables class, there are also a whole lot more in the form of event callbacks, which can be passed functions to execute at different points during a sortable interaction. These are listed in the following table:

Event

Fired when…

activate

Sorting starts on a connected list.

beforeStop

The sort has stopped, but the original slot is still available.

change

The DOM position of a sortable has changed and the sort is still in progress.

create

The widget is initialized.

deactivate

Sorting stops on a connected list.

out

A sortable is moved out of a connected list.

over

A sortable is over a connected list. ...

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