M
michael
I have an html text string within a div, eg.:
<div id="example">Text text text</div>
I know its easy to change styles by using getElementById - for example:
document.getElementById("example").style.fontColor="#ff0000";
But what way(s) are there to change the actual text content itself on the
page dynamically, from "Text text text" to"Bla bla bla" ?
Can it be done with JS/CSS?
<div id="example">Text text text</div>
I know its easy to change styles by using getElementById - for example:
document.getElementById("example").style.fontColor="#ff0000";
But what way(s) are there to change the actual text content itself on the
page dynamically, from "Text text text" to"Bla bla bla" ?
Can it be done with JS/CSS?