textarea text color javascript

 

 

 

 

The textarea with remaining chars. Javascript for managing html-input in a textarea. De textarea element on an html-input-form has a disadvantage.When the visitor typed to much, it gets the class taerror. These classes give a different color to the bold text with the remaining characters. Is there any JS function that can change the color of certain text in a textarea?I Think You will need to use execCommand method of javascript it controls many thing such this stuff of changing specifc textcolor.