I have a div #someDiv, can I create a new element and make #someDiv its child? Basically, I want to wrap a new element next to C # someDiv. How to do it?
$("#someDiv").appendTo($("<div id='newParent'></div>"));
// The intent is to move
// The new container may or may not be in the same
// position in the DOM as
Thanks for any tips!
Cheers, ~ ck in San Diego
source
share