Hi all
I have an HTML page. I would like to have a text that I can update whenever I want, like in a kind of label. This text has a particular style (color ...) so it cannot be in a textarea for example.
The only solution I found is to put this text in a <a id="mytext"></a> tag without any "href". But now, there is now property "value" or "text" to do something like this:
Someone has an idea ?
Thanks a lot
I have an HTML page. I would like to have a text that I can update whenever I want, like in a kind of label. This text has a particular style (color ...) so it cannot be in a textarea for example.
The only solution I found is to put this text in a <a id="mytext"></a> tag without any "href". But now, there is now property "value" or "text" to do something like this:
Code:
document.mytext.value = "text updated"
Someone has an idea ?
Thanks a lot