[jQuery] Re: Remove an element but not it's content

2009-08-06 Thread piter
Hi, Not sure if sent the post but Solution is quite easy (I wouldnt even use jQuery for this): For re-use purposes create function: function rmTags(ref){ ref.parentNode.insertBefore( document.createTextNode (ref.innerHTML), ref); return ref.parentNode.re

[jQuery] Re: Remove an element but not it's content

2009-08-06 Thread piter
?? Why u wanna use jQuery for this? It's simple thing in JS: assuming your rference to link will be: var theLink; just do this: theLink.parentNode.insertBefore( document.createTextNode (theLink.innerHTML), theLink); theLink.paren