开发者

Drag and Drop using jQuery

开发者 https://www.devze.com 2022-12-26 06:03 出处:网络
I want to do a simple drag-drop using jQuery. I have not done开发者_运维技巧 anything so far, but previous attempts were unsuccessful.Have you tried jQuery UI Draggable? Simple use case:

I want to do a simple drag-drop using jQuery. I have not done开发者_运维技巧 anything so far, but previous attempts were unsuccessful.


Have you tried jQuery UI Draggable? Simple use case:

<script type="text/javascript">
    $(function() {
        $("#draggable").draggable();
    });
</script>

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


Online Demo Created.

See this please.

Other Option:

JQuery Drag & Drop Plugin.

0

精彩评论

暂无评论...
验证码 换一张
取 消