0
var X = createElement('div');
document.body.appendChild(X);
var Y = createElement('div);
as an attachment to div X to div Y?
0
var X = createElement('div');
document.body.appendChild(X);
var Y = createElement('div);
as an attachment to div X to div Y?
2
Instead of document.body.appendChild(X);
(that attached to the body
), use:
Y.appendChild(X);
Browser other questions tagged javascript
You are not signed in. Login or sign up in order to post.
When you say "attach" you mean put "next to" or "inside"?
– Sergio