How to append a HTML string such as
var str = '<p>Just some <span>text</span> here</p>';
to the <div>
with the id test
?
(Btw div.innerHTML += str;
is not acceptable.)
How to append a HTML string such as
var str = '<p>Just some <span>text</span> here</p>';
to the <div>
with the id test
?
(Btw div.innerHTML += str;
is not acceptable.)