Drag and Drop into another div and move in the div only using jquery

Posted by Jean on Stack Overflow See other posts from Stack Overflow or by Jean
Published on 2010-04-12T16:05:57Z Indexed on 2010/04/12 18:13 UTC
Read the original article Hit count: 227

Filed under:

Hello,

I have a dragable div, I want to be able to drag a div and drop into another div. It should only move inside the, dropped div.

Currently I have this code

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

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

Thanks Jean

© Stack Overflow or respective owner

Related posts about jQuery