Drag and Drop without moving an item

Hi, I'm using drag and drop from jQuery, and what I want to try and simulate is drag and drop, except during the drag and drop movement. I do not want the element to really move from its place.

In the example here: http://jsfiddle.net/2LN5G/ , when you drag "Drag me to the target", it moves from the list and comes back when it is dropped. I want to show "Drag me to the target at the current position and show" Drag me to the target "by moving the cursor. Is this possible?

+5
source share
1 answer

Check out the visual feedback example on jQueryUI.com .

Basically, you want to specify a helper option when calling a method .draggable().

$(".draggable").draggable({
  helper: "clone"
});
+9
source

All Articles