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));
}
 
PREVIOUS NEXT
Tagged: #drag #drop #html
ADD COMMENT
Topic
Name
7+2 =