Site icon Hip-Hop Website Design and Development

set completely different shade in a choose field because of choice with css

I’ve a choose field with 2 choices. Within the selct space the choices are
inexperienced for 1
purple for two

I had been in a position to set inexperienced additionally as the colour for the predefined possibility.
Now I wish to change this because of the incoming choice.

Meaning, if somebody has 1 as predefined choice the colour of the showing conent of the proven choose field ought to be inexperienced and if some has 2 as redefined choice the colour of the showing conent of the proven choose field ought to be purple.

https://jsfiddle.internet/aqd7web5/2/

The entire thing solely with css if doable.

Thanks prematurely