dhtmlxcombo color

Hello,
In Dhtlmxcombo, we can apply an image of his choice.

By cons, it is possible to apply a color of choice ?

echo “<option value=”$stest[0] " img_src="./images/bs.gif" style=“background-color: Black;color: #FFFFFF;”>$test[0] ";

?

thanks Jacky

If you want to set your style to all options - use

combo.DOMlist.style.color='red'; //and other properties you need

If you need all your options be different - write in your xml NOT attribute ‘style’ - the ‘css’
Like this:

<option value="Three" css="background-color: Red;color: #000000">Option 3</option>

Thank you infinitely :slight_smile: