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 Quote 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 ??? Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.