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 droppables

The droppable class is considerably smaller than the draggable class, and there are fewer configurable options for us to play with. The following table lists those options available to us:

Option

Default

Used to…

accept

"*"

Set the draggable element(s) that the droppable will accept.

activeClass

false

Set the class that is applied to the droppable, while an accepted drag object is being dragged.

addClasses

true

Add the ui-droppable class to the droppable.

disabled

false

Disable the droppable.

greedy

false

Stop drop events from bubbling when a drag object is dropped onto nested droppables.

hoverClass

false

Set the class that is applied to the droppable, while an accepted ...

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