Home > mootools-element.removetag

mootools-element.removetag

Mootools-element.removetag is a project mainly written in JavaScript, it's free.

Element.removeTag

Allows you to destroy an Element while leaving its contents in place.

How to use

HTML

# HTML
<div>
    <div id="removeMe">
        This text will be in place of the <em>removeMe</em> element.
    </div>
</div>

JS

# JS
$('removeMe').removeTag();

Result

# HTML
<div>
    This text will be in place of the <em>removeMe</em> element.
</div>
Previous:fail0verflow