Jump to content

Change textarea default text color after onclick


Mr_jmm

Recommended Posts

Hi,

 

Usual thing. I have a textarea with default text. I am using onclick to clear this default text which works no probs. However, I would like the default text to be a different colour to text the user enters. Could anyone please help me out with this?

 

The code so far is:

<textarea rows="6" name="message" id="message" onclick="document.newMessageForm.message.value=\'\';">blah blah blah</textarea>

 

Many thanks

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.