As said here : Change an HTML5 input's placeholder color with CSS, Chrome doesn't support the CSS property color for input placeholders.
But there is a property named -webkit-input-placeholder
. If I put on my CSS :
#MyInput::-webkit-input-placeholder {
color: blue;
}
It works. But how can I do this with Javascript (or jQuery) ?