x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
    <title>Droppable plugin</title>
5
    <meta charset="utf-8" />
6
    <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
7
    <script src="https://unpkg.com/gijgo@1.9.14/js/gijgo.min.js" type="text/javascript"></script>
8
    <link href="https://unpkg.com/gijgo@1.9.14/css/gijgo.min.css" rel="stylesheet" type="text/css" />
9
    <style>
10
        .draggable {
11
            border: 1px solid #999;
12
            width: 300px;
13
            height: 200px;
14
            text-align: center;
15
        }
16
17
        .droppable {
18
            border: 1px solid #999;
19
            width: 300px;
20
            height: 200px;
21
            text-align: center;
22
        }
23
24
        .hover {
25
            background-color: #FF0000;
26
        }
27
    </style>
28
</head>
29
<body>
30
    <div id="droppable" class="droppable">Drop Here</div>
31
    <div id="draggable" class="draggable">Drag Me</div>
32
    <script>
33
     $('#draggable').draggable();
34
     $('#droppable').droppable({ hoverClass: 'hover' });
35
    </script>
36
</body>
37
</html>
38