+ 5
Can anyone help me... How to use drag and drop....? Give me a simple example to make it understand easily.....
3 Réponses
+ 6
drag and drop is a event based mechanism.
To make html5 elements draggable , we use the draggable attribute.
when the draggable attribute is set to true value, the browser will automatically tell that the element is draggable.
<div draggable="true">
dragstart,
drag,
dragenter,
dragleave,
drop,
dragend
these are examples of events that are fired up during dragging process.
i hope these is useful :)
+ 5
Just set the draggable attribute of whichever element that you want to drag to “true”.