Changing Selected Item background and text color in Select input

Hello everyone,

I have a model which has two columns named background_color and text_color. Is there any way I can change the background and text color of the selected record according to the value of these columns?
image.png
Was this page helpful?