change place holder color of select

Solutions on MaxInterview for change place holder color of select by the best coders in the world

showing results for - "change place holder color of select"
Abigael
02 Mar 2020
1select {
2  color: #9e9e9e;
3}
4option:not(:first-of-type) {
5  color: black;
6}
Lilly
09 Jan 2019
1/* Html */
2<select id="businesstype">
3  <option value="" disabled selected hidden>Business Type</option>
4  <option value="">Restaurant</option>
5  <option value="">Hotel</option>
6</select>
7
8/* Css */
9#businesstype {
10  color: gray;
11}
12
13#businesstype option {
14  color: black;
15}