drag div from inside div to inside another

Discussion in 'Javascript' started by 123Jim, May 16, 2011.

  1. 123Jim

    123Jim Guest

    Hi all,
    ########example HTML:##########
    <div id="holder1" class="draggable">
    <div id="mover" class="draggable">moveme</div
    </div>

    </div id="holder2" class="draggable"></div>
    ##########################

    Is it possible to drag <div id="mover"> from <div id="holder1"> in to
    <div id="holder2"> so that the 'mover' becomes attached to the 'holder'

    In the above structure I can drag 'holder1' and 'mover' will stick to it,
    that's fine, but when I drag 'mover' to 'holder2', it still gets dragged
    around by 'holder1', just outside of it.
     
    123Jim, May 16, 2011
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. nail
    Replies:
    0
    Views:
    1,558
  2. K Viltersten

    <div ... /> and <div ...></div>

    K Viltersten, Mar 30, 2009, in forum: ASP .Net
    Replies:
    4
    Views:
    763
  3. Replies:
    2
    Views:
    121
  4. Dwayne Madsen

    Q: Div A inside Div B is larger than Div B

    Dwayne Madsen, Jun 1, 2005, in forum: Javascript
    Replies:
    1
    Views:
    201
    David Dorward
    Jun 1, 2005
  5. mscir
    Replies:
    3
    Views:
    324
    Martin Honnen
    Jun 26, 2005
Loading...

Share This Page