Hi Gus!
> One way to do this is use .appendBefore() to move the children up one level
> in the DOM before the element you want to remove & then do the .remove()
Thank you very much, that worked perfectly!
Thanks again,
Zoe.
Hi!
Is there a way to remove an element from the DOM, like with remove(),
but to keep its children? Alternatively, is there a way to move an
element one branch up the tree, so when I remove what used to be its
parent, it'll take its place?
Thank you,
Zoe.
2 matches
Mail list logo