The normal way I have seen to doing drag and drop is using ev.dataTransfer.setData("text", ev.target.id); and the corresponding dataTransfer.getData
ev.dataTransfer.setData("text", ev.target.id);
dataTransfer.getData