Skip Navigation

[Resolved] Make the CSS if select without selected option

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 0.96 hours from now. Thank you for your understanding.

This topic contains 1 reply, has 2 voices.

Last updated by Christopher Amirian 1 year, 11 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2517709
Screenshot 2022-12-17 at 10.58.14 PM.png

Dear Sir/Madam,

How can I make the CSS if a select element without selected option, I want to color it if is has no item selected.

#2518231

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

The SELECT HTML element is rendered by the operating system and that is why you do not have much control over that, except if you use Javascript libraries.

Toolset does not have any built in functionality to implement such a thing. I did a search and found the result below:

https://stackoverflow.com/questions/13694271/modify-select-so-only-the-first-one-is-gray

But it is not exactly what you need.

As the fact that the Select is generated by Toolset does not have anything to do with the query I suggest that you ask this in stackoverflow website and see what answer you will get there

Thanks.