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