+ 4
Draggable text in html
Hi everyone! I am trying to write an HTML code that will allow me to drag simple text, but I can't get it to work. The lesson on Sololearn only explains making images draggable, but their "additional note" says that any HTML5 element can have this option. Could someone please explain to me what I am doing wrong? I will appreciate any help :) https://code.sololearn.com/WPQ3r9WX6J39/?ref=app
5 Réponses
+ 10
If you're trying to run it on mobile(code playground or browser on device), this will probably help:
https://stackoverflow.com/questions/20927759/html5-drag-and-drop-for-mobile
+ 2
Sorry! It doesn't look like the right code attached. Here it is:
https://code.sololearn.com/WPQ3r9WX6J39/?ref=app
0
Your problem might be that you have two different element tags. The element tags with the text in between should be the tag with the draggable property