Select option background

Select option background

  
How to set a class for an option select widget.I need to distinguish when the value is on another table and have a different background.How to accomplish this?
Check out the Drop down and Chosen components on the network.  They have code that changes the look and feel of the select components.
But not what i want.