I have a login form with placeholder text defined with a gray color. I would like when a user enters there name into the username input and then clicks the password input field to have the font color on the username switch back the the gray of the placeholder text. Is there a way to do this with only CSS or do I have to use Javascript?
Thats what I have in place now. I would like the user entered text to remain the black as focus is changed to the next input to show that the user has filled that input.
He wants the placeholder to be 'grey' A color for text being input (as it's input)...can be any color A (possibly) third color (black) to show the entered text once the user moves on to the next box.
http://codepen.io/Paulie-D/pen/BIqFv
Search google and CSS-Tricks has the answer all along: http://css-tricks.com/snippets/css/style-placeholder-text/
http://codepen.io/death180/full/piFnu
He wants the placeholder to be 'grey'
A color for text being input (as it's input)...can be any color
A (possibly) third color (black) to show the entered text once the user moves on to the next box.
Like this: http://codepen.io/Paulie-D/pen/asEiq