2016-04-09 3 views

Antwort

0

Verwenden Sie jQuery UI?

See: https://jqueryui.com/draggable/

Sie müssen sowohl die jQuery und jQuery UI initialisieren:

<script src="//code.jquery.com/jquery-1.10.2.js"></script> 
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script> 
<script> 
    $(function() { 
    $("#draggable").draggable(); 
    }); 
</script> 
<div id="draggable"> 
    <p>Drag me around</p> 
</div> 

Kasse diese CodePen sowohl mit jQuery und jQuery UI initialisiert werden:

https://codepen.io/dammeul/pen/JXpPwe