Hi I would like to move this element into another element. Sample
<div id="source">
...
</div>
into this
<div id="destination">
...
</div>
so I have something like this
<div id="destination">
<div id="me-first"></div>
<div id="source">...</div>
<div id="last-here"></div>
</div>
Here is my code
jQuery(document).ready(function (){
jQuery("#destination")
.prependTo("#source");
});
My problem is it will only transfer in the first place before me-first div. How do i put it in the middle of the me-first div and last-here div? Thanks
Here is the wrong placement after I ran my code.
<div id="destination">
<div id="source">...</div>
<div id="me-first"></div>
<div id="last-here"></div>
</div>