Can someone please explain drag and drop?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can someone please explain drag and drop??

28th Jun 2019, 1:31 AM
Unknown Temptation
Unknown Temptation - avatar
4 Answers
+ 2
thank you...that was helpful👍
28th Jun 2019, 1:49 AM
Unknown Temptation
Unknown Temptation - avatar
+ 2
From HTML5 it is possible to drag and drop HTML elements inside an HTML page. Via JavaScript event listeners you can decide what happens when the user drags and drops elements. During drag and drop HTML elements can take on two roles: 1). Draggable 2). Drop target / drop zone -> The draggable element is the element which the user should be able to drag around the HTML page and drop somewhere, for some action to occur. This can be one or more elements. -> The drop target or drop zone is the element onto which the draggable elements are dropped.
28th Jun 2019, 2:44 AM
Anil
Anil - avatar
+ 1
You mean explain you how the code works for it?
28th Jun 2019, 1:52 AM
Juan David Padilla Diaz
Juan David Padilla Diaz - avatar
+ 1
no,the general concept of it
28th Jun 2019, 2:15 AM
Unknown Temptation
Unknown Temptation - avatar