It is necessary, using the jquery library, to ensure the transfer of the image on the html-page in drag'n'drop mode.

  • Clarification: you just need to drag the item or support full events onDragStart, onDrag and onDrop? - ling
  • If interested, I can write code without jq. - Zowie

1 answer 1

Visual Studio is not needed here. Enough notebook. :)

<div id="draggable" class="ui-widget-content" /> is what will be dragged. You can insert a picture there.

 <html> <head> <link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.8.16/themes/base/jquery-ui.css" /> <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script> <script type="text/javascript" src="http://code.jquery.com/ui/1.8.16/jquery-ui.min.js"></script> <style> #draggable { width: 100px; height: 100px; background: black; } </style> <script> $(function() { $("#draggable").draggable(); }); </script> </head> <body> <div id="draggable" class="ui-widget-content" /> </body> </html> 

Read more: draggable .

  • one
    I think that the meaning of the assignment is in programming, and in the superficial understanding of DRAG AND DROP and not in connecting libraries ... - triplustri