GIJGO
Examples
Documentation
Report a Bug
Download
Droppable Div
Gijgo.com
Droppable
Examples
Droppable Div
Droppable Div
Click on the div and start dragging and dropping
Preview
Front-End Code
Edit
<!DOCTYPE html> <html> <head> <title>Droppable plugin</title> <meta charset="utf-8" /> <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> <script src="https://unpkg.com/gijgo@1.9.14/js/gijgo.min.js" type="text/javascript"></script> <link href="https://unpkg.com/gijgo@1.9.14/css/gijgo.min.css" rel="stylesheet" type="text/css" /> <style> .draggable { border: 1px solid #999; width: 300px; height: 200px; text-align: center; } .droppable { border: 1px solid #999; width: 300px; height: 200px; text-align: center; } .hover { background-color: #FF0000; } </style> </head> <body> <div id="droppable" class="droppable">Drop Here</div> <div id="draggable" class="draggable">Drag Me</div> <script> $('#draggable').draggable(); $('#droppable').droppable({ hoverClass: 'hover' }); </script> </body> </html>
;