How to highlight (change background color) of selected text within a text area

How to highlight (change background color) of selected text within a text area

Post by omidalav » Sun, 25 Sep 2005 01:34:46


I want to create a functionality to be able to highlight - change
background color - of selected text in a text area. I also want to
capture all of the selected text for further processing.

If this is not possible in a textarea, then I use another element (like
a <DIV>)

basically I need to ba able to highlight multiple sections of a text
and then display all of the highlighted text somewhere else.