Say I have this text
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
and I want to make the bold
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
If I was to do this in Javascript
function myFunction(obj) { var text1 = "Lorem ipsum "; var text2 = "dolor sit amet"; var text3 = ", consectetur adipiscing elit."; text2.bold(); obj.value = text1 + text2 + text3; } <textArea onmouseup=myFunction(this)>Lorem ipsum dolor sit amet, consectetur adipiscing elit</textArea> I can't seem to bold the text, any ideas?
<textarea>doesn’t support rich formatting. It’s a plain text input.