[jQuery] Using wrap() and then removing the wrapped element without removing the children

[jQuery] Using wrap() and then removing the wrapped element without removing the children


Easy Question I think. If I use (from Jquery 1.2):
$("#myElem").wrapAll("<div id='myDiv'></div>");
To wrap the div 'myDiv' around 'myElem', how can I later remove that div
without removing the pre-existing myElem and any other contents of that div?
Brook





    • Topic Participants

    • brook