0

I would like to ask for help with my D&D function...

Here is a Fiddle: http://jsfiddle.net/B5kJf/5/

Function D&D is implemented but I can't fix bug when you drop object to his original target. If you do it, object will split in two.

Please help me. -David

4

1 回答 1

1

我在这个例子中发现了问题:http: //jsfiddle.net/RichardAD/K27fu/

只需要改变这一行:

this.element.html(this.element.html() + e.draggable.element[0].outerHTML);

这样:

this.element.append(e.draggable.currentTarget);

希望对其他人有所帮助...

最好的问候,-大卫

于 2012-08-24T12:22:12.803 回答