Set colour to option once selected in iterative select option list

Hello

Can you please advise how to set colour to an option once it has been selected in a repeating select option list?

Thus the user will be able to see which options have already been selected according to its colour.

Thanks