change text color in button

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:23 UTC
Read the original article Hit count: 497

Filed under:
|

i have an input button, which's value is "something" by default, but when i click on it, i start to type. i want, that the default value has one color, and the text i'll type, another one. how can i do that? here is the script


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

© Stack Overflow or respective owner

Related posts about html

Related posts about css