html - How to set the color of "placeholder" text? -


is possible set color of placeholder text ?

<textarea placeholder="write message here..."></textarea> 

nobody likes "refer answer" answers, in case may help: change html5 input's placeholder color css

since it's supported couple of browsers, can try jquery placeholder plugin (assuming can\are using jquery). allows style placeholder text via css since it's swap trick focus events.

the plugin not activate on browsers support it, though, can have css targets chrome\firefox , jquery plugin's css catch rest.

the plugin can found here: https://github.com/mathiasbynens/jquery-placeholder


Comments

Popular posts from this blog

How can I edit my VIM config so that Vim treats ".ejs" files the same as it currently treats my html files? -

Python __call__ special method practical example -