Define it in CSS as it is, but make it #MyInput.blue-placeholder::-webkit-input-placeholder and add / remove the blue placeholder class using jQuery.
#MyInput.blue-placeholder::-webkit-input-placeholder { color: #0000ff; }
DEMO: http://jsfiddle.net/AY3j6/
source share