Scriptaculous drag and drop issue

I’ve been banging my head against a brick wall with this for an hour now!

According to the documentation, this little snippet I’ve put together:

<div id="draggable">drag me</div>
<div id="droppable">drop here</div>

new Draggable ('draggable', {revert: 'failure'});
Droppables.add ('droppable');

…should mean that when the dragged element is dragged onto the droppable element, it stays there when you release the mouse.

Suffice to say, it doesn’t!

Anyone able to help me work out why? Of course, if I’m going about it the wrong way, a friendly hand in the right direction would be most appreciated :slight_smile:

You may need to specify what the droppable can accept.