Move one element into another completely
by YKKY
HTML
<div class="source">Move Me</div>
<div class="destination"></div>
CSS
.source {
width: 100px;
height: 100px;
background: rgba(0,0,0,0.7);
color: rgba(255,255,255,1);
line-height: 100px;
text-align: center;
margin: 9px 10px 10px 10px;
}
.destination {
width: 120px;
height: 120px;
background: rgba(255,255,255,0.7);
color: rgba(0,0,0,0.5);
line-height: 100px;
text-align: center;
padding-top: 1px;
margin-top: 6px;
}
JavaScript
jQuery(document).ready(function(){
jQuery('.source').contents().appendTo('.destination')
});