PDA

View Full Version : Need help with selectively coloring items in a multiselect list



ItsGarand
22 Jun 2017, 5:39 PM
Hello all,

I have a small app that has a simple multiselect within a panel. It is a single list of items (store) which I would like to programatically set to different colors. Firebug show that there is no default class set to the items in the list but the class will change when an item is either hovered over or selected.

So how does one go about changing the background color for any item in a multiselect?

I found this a few minutes ago but would like to know if it is basically the accepted way to go about it:
http://jsfiddle.net/amitaviv99/VJABm/


Regards,
S~