To directly address the option font color, we can set the color on the select element to the light grey, then set all the option font colors except the first to black. This way, the first option inherits the light grey, and shows as such while the select is both open and closed.
Tag: placeholder
How to add red asterisk sign to placeholder
Scenario: How to add a red asterisk sign to the placeholder. Solution: html: css: javaScript
How to use placeholder option in online case form.
We can set the placeholder for fields in online case form by script. Template:
Show different placeholder text for mobile and desktop
Requirement is to make the placeholder text different for mobile as well as desktop. Example: The placeholder that need to show in the mobile device is “” and in the desktop need to be “”. For that first get the screen width in the JavaScript file and pass that value to ‘getcontext’ and then update… Continue reading Show different placeholder text for mobile and desktop