Website using drag and drop

I am a student and new to .net and website development. I gave the site as a project in asp.net where you can drag and drop HTML control and create a simple static website. now that the user is dragging and dropping a specific HTML control, then a copy of it, or can you say that the clone will be placed so that the user can drag the same HTML control several times can someone help me?

Asp.net Technology with C # (.net 4.5)

+4
source share
2 answers

Here is the jQuery Draggable! It is easy and useful with a little script!

     <script>
$(function() {
$( "#draggable" ).draggable();
});
</script>

!

+2

jquery, # . JqueryUI:

:

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>jQuery UI Draggable - Default functionality</title>
  <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
  <script src="//code.jquery.com/jquery-1.9.1.js"></script>
  <script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
  <link rel="stylesheet" href="/resources/demos/style.css">
  <style>
  #draggable { width: 150px; height: 150px; padding: 0.5em; }
  </style>
  <script>
  $(function() {
    $( "#draggable" ).draggable();
  });
  </script>
</head>
<body>

<div id="draggable" class="ui-widget-content">
  <p>Drag me around</p>
</div>


</body>
</html>
+2

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


All Articles