How can I drop a cloned image using jQuery? By User January 19, 2012 I can't drop a cloned image. But this works when I comment the helper:"clone" option.$(document).ready(function(){ $("#drag").draggable({ helper:"clone", revert:"invalid" }); $("#table4").droppable();}); Share Get link Facebook X Pinterest Email Other Apps Labels jquery jquery-ui jquery-ui-draggable jquery-ui-droppable Tips For Programmer Share Get link Facebook X Pinterest Email Other Apps Comments Tips For AllJanuary 19, 2012 at 4:47 AMthe helper is only for visuals.if you want to clone the image and drop it .. try something like that:$("#table4").droppable({ accept: "#page", tolerance: "touch", drop: function (event, ui) { ui.draggable.clone().appendTo(this); }});ReplyDeleteRepliesReplyTips For AllJanuary 19, 2012 at 4:47 AMI think this resolves your issue: Jquery: draggable clone.Ps.: A simple search was enough to find this.ReplyDeleteRepliesReplyAdd commentLoad more... Post a Comment
the helper is only for visuals.
ReplyDeleteif you want to clone the image and drop it .. try something like that:
$("#table4").droppable({
accept: "#page",
tolerance: "touch",
drop: function (event, ui) {
ui.draggable.clone().appendTo(this);
}
});
I think this resolves your issue: Jquery: draggable clone.
ReplyDeletePs.: A simple search was enough to find this.