HTML5 Drag And Drop Issue
Thanks for looking at this post I got a jsFiddle page up to demonstrate my issue my js fiddle
Solution 1:
I have made some changes to your drop function.
function drop(ev)
{
ev.preventDefault();
var data=ev.dataTransfer.getData("Text");
var new_img = $('#'+data).clone();
$('#'+ev.target.id).html(new_img);
}
Solution 2:
function drop(ev)
{
ev.preventDefault();
var data=ev.dataTransfer.getData("Text");
var new_img = $('#'+data).clone();
$('#'+ev.target.id).html("");
$('#'+ev.target.id).html(new_img);
}
Try this if it works.
Post a Comment for "HTML5 Drag And Drop Issue"