HTML5 drag and drop

With Mozilla, I can drag and drop DOM node elements thanks to the type application/x-moz-node . Is there a similar type with Chrome, Opera, etc.?

Thanks.

+6
source share
2 answers

If you want consistent drag and drop behavior in browsers, I would recommend you use jQueryUI . With Draggable and Droppable , they did all the hard work for you.

+1
source

You can use Modernizr.draganddrop to detect HTML 5 native drag and drop.

If the browser supports this feature. you can use draggable = true to set the node to drag and drop. Otherwise, you must use JQuerUI to support it.

0
source

Source: https://habr.com/ru/post/926855/


All Articles