I am trying to selectively colour text, according to word length. I have achieved a string with markup included, e.g. < font color=“green”>< font>
My problem is how do I write this, programmatically, to a text area (already included in a form div) as a normal string, appropriately coloured, without the markup? I can do that with document.write()… but that is not very elegant, and also loses paragraph divisions.
Any help or advice is welcome. Tony.