In
this tip we will see how to change the text of span control using Javascript.
In HTML/ASPX page, span control will be defined as
<span id="spanElement"> span text </span>
In
order to change the value of span element in java script use below code.
document.getElementById('spanElement').innerHTML = "span
text from JS";
0 Comments:
Post a Comment