I have this:
CHtml::textField("Atava[admin_panel][0][u_type]", '', array('size'=>60,'maxlength'=>128,'encode'=>false,'placeholder'=>'Placeholder content') );
My problem is:
when I add text to the text field, the placeholder text disappears (as it should)
But the added text gets the same color as the Placeholder text color(light grey).
I want the added text to have the default color (like it has without a placeholder)
any ideas??
Set css styles for placeholder http://jsfiddle.net/SKS23/
*::-webkit-input-placeholder {
color: red;
}
*:-moz-placeholder {
/* FF 4-18 */
color: red;
}
*::-moz-placeholder {
/* FF 19+ */
color: red;
}
*:-ms-input-placeholder {
/* IE 10+ */
color: red;
}