0

How can i create a drag able div element

I want to be able to drag my div element with an id of mydiv anywere i want

8th Sep 2020, 10:04 AM
maxi steve
maxi steve - avatar
3 odpowiedzi
8th Sep 2020, 10:51 AM
Calviղ
Calviղ - avatar
+ 1
https://www.w3schools.com/howto/howto_js_draggable.asp Maybe this would help
8th Sep 2020, 10:07 AM
$hardul B
$hardul B - avatar
0
<div id="mydiv" draggable="true">...text..</div> You can drag it now But can't drop anywhere. Read about drag and drop api for drop function.
8th Sep 2020, 6:10 PM
Divya Mohan
Divya Mohan - avatar