Change text color in text field

Posted by Syom on Stack Overflow See other posts from Stack Overflow or by Syom
Published on 2010-03-25T15:21:11Z Indexed on 2010/03/25 15:43 UTC
Read the original article Hit count: 509

Filed under:
|
|

I have an input text field, which has a value "something" by default, but when I start to type, I want that the default value changes color, and the text i'll type, another one.

How can i do that?


<input type="text" value="something" onclick="this.value=''" />

© Stack Overflow or respective owner

Related posts about html

Related posts about css