0

Placeholder color not working in IE 9 only. Other browser working fine. Can anybody tell me which css required for IE9? I used one div -> select element -> default input field .Want to change text color of place holder. I search on Google it will work on IE 10+

input:-ms-input-placeholder    {
  color:#27AE60 !important;
}
<input type="text" ng-model="inputText" placeholder="somePlaceholder" />

Original CSS selector:

 #dropdown_ID div.selectize-control div.selectize-input input:-ms-input-placeholder {
      color:#27AE60 !important;
  }
Marcos Pérez Gude
  • 21,869
  • 4
  • 38
  • 69
Ravi Chothe
  • 180
  • 5
  • 17

1 Answers1

1

Yeah, you are right. IE doesn't support placeholder attribute. I found this two link useful to choose alternative for issue of placeholder in IE.

Referral link :

https://mathiasbynens.github.io/jquery-placeholder/
http://www.hagenburger.net/BLOG/HTML5-Input-Placeholder-Fix-With-jQuery.html

You can use any way to solve your problem.

Ghanshyam Katriya
  • 1,071
  • 1
  • 11
  • 37