Drag and Drop
Drag and Drop
Hi,
I have a drag and drop interface that allows you to drag list items
from one container to the other. I'm using this code:
$("li").draggable({ revert: true })});
$(".ul").droppable({
accept: ".jDraggable",
hoverClass: 'jDroppable-hover',
drop: function (event, ui) {$(this).prepend(ui.draggable);}
});
There is a slight problem that when I drop a list item in a container,
it is dropped to the right, then moves into place. Is there any way to
stop this behaviour and just have it appear in its new container?
cheers,
DAZ