The Wayback Machine - https://web.archive.org/all/20070114021731/http://freewebsfarms.com:80/forums/viewtopic.php?pid=3118

#1 2006-10-19 18:43:21

Excalibur
Batman
Registered: 2006-10-17
Posts: 12

Move One DOM Element from a DIV and put in Another DIV.

I'd like to take an Image that is housed in a DIV on page start and then move that Image to another DIV. I've got Drag & Drop working, but I want to find out how to actually move the element to another DIV. Can anyone help? Right now, it drops it on the document, in a way, but it's still tied to the originating DIV...

Preferrably using Mootools. smile

Offline

 

#2 2006-10-19 18:57:40

cbeyls
Superman
From: Brussels, Belgium
Registered: 2006-10-04
Posts: 160
Website

Re: Move One DOM Element from a DIV and put in Another DIV.

Code:

el.remove().injectInside('newdiv_id');

For each problem, there's a solution. But people prefeir creating problems, it's easier.

Offline

 

#3 2006-10-19 19:19:17

Excalibur
Batman
Registered: 2006-10-17
Posts: 12

Re: Move One DOM Element from a DIV and put in Another DIV.

Thanks! Man, I wish the docs were up and running and a bit more detailed wink maybe that's a job for another day... heh

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson