Hi all!
I’ll keep it as simple as possible for now. I got a container DIV, which hold multiple other DIVs (say articles). Now it must become possible to move these articles within the main DIV. So… I move one article down in the list of DIVs within the container/wrapper.
[code=php]<div id=”wrapper”><div id=”article1″>abc</div><div id=”article2″>abc</div></div>
The “abc” is just a fill-up, the actual content is much more complex. I hope there is a way to put the 2nd div in front of the first div without copying the data etc.
So in DOM terms:
divWrapper.childNodes[0] // must become divWrapper.childNodes[1]
divWrapper.childNodes[1] // must become divWrapper.childNodes[0]
Hope anyone can help!
Thanks