0

Possible Duplicate:
Change an input’s HTML5 placeholder color with CSS
Change font-color of placeholder span on input focus

Placeholder Attributes and Styles

How do you change a placeholder's styles?

For example:(font-family,size,color,etc.)

Community
  • 1
  • 1

2 Answers2

0

jQuery $('.class').css('color', '#334455'); same for the other CSS properties

Reflective
  • 3,854
  • 1
  • 13
  • 25
0

This can be done with css. Have a look at the answer here. Change an HTML5 input's placeholder color with CSS

More or less use

input:-webkit-input-placeholder {
    color:    #999;
}
input:-moz-placeholder {
    color:    #999;
}
input:-ms-input-placeholder {
    color:    #999;
}
Community
  • 1
  • 1
Bot
  • 11,868
  • 11
  • 75
  • 131