Replace node with innerhtml
Posted
by Mostafa Mahdieh
on Stack Overflow
See other posts from Stack Overflow
or by Mostafa Mahdieh
Published on 2010-04-30T07:10:49Z
Indexed on
2010/04/30
7:17 UTC
Read the original article
Hit count: 252
With JavaScript I want to remove a specific DOM node and replace it with the innerHTML. For example I want to change
<div>
...
<div id="t1">
this is <b> the text </b> I want to remain.
</div>
...
</div>
To
<div>
...
this is <b> the text </b> I want to remain.
...
</div>
© Stack Overflow or respective owner