/ Published in: JavaScript
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
//method to change an elements parent
function setParent(el, newParent) {
newParent.appendChild(el);
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                