Mr_jmm Posted March 12, 2009 Share Posted March 12, 2009 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 Link to comment https://forums.phpfreaks.com/topic/149039-change-textarea-default-text-color-after-onclick/ Share on other sites More sharing options...
darkfreaks Posted March 12, 2009 Share Posted March 12, 2009 http://www.newworldgeeks.com/jquery/changing-style-using-jquery2.php like this ??? Link to comment https://forums.phpfreaks.com/topic/149039-change-textarea-default-text-color-after-onclick/#findComment-782607 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.