Form 'hint text color' workaround for 'select'

JD_Nelson
Level 10 - Community Advisor

Form 'hint text color' workaround for 'select'

I have a form which utilizes the Hint Text instead of the label (within the field). I added a few Select fields now and the text in them defaults to black/dark grey. I'm trying to find the right CSS mix to get the default value to be a light grey and any selected option after that to go back to the black/dark grey default.

Example:

My "Country" field select has the pick-list values:

Country...|

United States|United States

Canada|Canada

Mexico|Mexico

I want only "Country..." to be a light grey, but any of the other 3 to be the default color. Is this possible?

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

Re: Form 'hint text color' workaround for 'select'

Pls post a link to the form in action.

Not all browsers allow for styling of individual <SELECT>s, but with a little JS you can change the (global) style based on the selected index.