4
Contributors
5
Replies
6
Views
9 Years
Discussion Span
Last Post by MidiMagic
0

1. Assign an id or a class to the textarea.

2. For css, assign a color string ("#rrggbb") to background-color for the id or the class.

3. For JavaScript control, use a statement such as this:

document.forms.myid.style.backgroundColor = colox;

where colox contains a color string.

0

You misread the requirements. The task is to change the background color of the selected text in a textarea and not the background color of the textarea.

0

If you know that then why you didn't give him the answer ?
try to give them a positive answer not to discourage ...

0

> If you know that then why you didn't give him the answer ?
Because there is none.

> try to give them a positive answer not to discourage ...
You should look for answers and not pleasing words.

0

If you want to change the color the selection becomes when selected, that is a Windows setting, not a web setting. The setting is in the Control Panel, and is under the control of the owner of the computer, not the webmaster.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.