pindahkan elemen dom ke orang tua lain
const newParent = document.getElementById('new-parent');
const oldParent = document.getElementById('old-parent');
while (oldParent.childNodes.length > 0) {
newParent.appendChild(oldParent.childNodes[0]);
}
Better Barracuda