Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Append element to a different parent

var photo = document.getElementById("photo");
photo.id  = "newId";
document.getElementById("someOtherDiv").appendChild(photo);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Append #element #parent
ADD COMMENT
Topic
Name
1+4 =