Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

drag and drop html

function drop(ev) {
    ev.preventDefault();
    var data = ev.dataTransfer.getData("text");
    ev.target.appendChild(document.getElementById(data));
}
Source by interactjs.io #
 
PREVIOUS NEXT
Tagged: #drag #drop #html
ADD COMMENT
Topic
Name
9+7 =