2

Is it possible to dislay different parts of the option text in select using different colors?

<select name="cards">
  <option value="0">This is green This is black</option>
  <option value="1">This is green This is black</option>
</select>

How to do it? Is it possible to do it with css or javascript? Maybe there some libraries that allow to do it? Is it possible at all?

Oleg
  • 2,733
  • 7
  • 39
  • 62

1 Answers1

-3

Hope this will help you.

    <select name="select">
    <option value="1" style="color:blue">Test</option>
    <option value="2" style="color:green">Test</option>
    </select>
ItzMe_Ezhil
  • 1,276
  • 2
  • 11
  • 22