J
JM
Hi all,
I have this sample code:
var d=document.getElementById("txt");
d.innerText = d.innerText.toString() + "\n\n" + "<b>"+result+"</b>";
where 'txt' is of type <DIV>, and 'result' is some custom string. I
want to parse the result string and change some of the words to other
color. How do I do this? Is changing colors possible with innerText, or
should I use innerHTML. If so, how do I apply this using innerHTML?
Thanks,
JM
I have this sample code:
var d=document.getElementById("txt");
d.innerText = d.innerText.toString() + "\n\n" + "<b>"+result+"</b>";
where 'txt' is of type <DIV>, and 'result' is some custom string. I
want to parse the result string and change some of the words to other
color. How do I do this? Is changing colors possible with innerText, or
should I use innerHTML. If so, how do I apply this using innerHTML?
Thanks,
JM