chatTextBox.innerHTML = '<span style="color:#FF0000"> hi </span>';
This is what I want to do, but the innerHTML just becomes
<span style="color:#FF0000"> hi </span>
and not hi
in red.
Note: I'm using a TextArea and I want to be able to write in multiple text color.
chatTextBox.innerHTML = "<span style='color:#FF0000'> hi </span>
";
try this way, it should ideally work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With