View Full Version : Simple text color change in a ComboBox
marathonkp
1 Sep 2011, 3:51 PM
I am trying to change the color of a text in ComboBox from gray to black. The text in dropdown is black but after a value is selected it shows the text in gray.
This works in Firefox but not in IE.
skirtle
3 Sep 2011, 9:30 AM
The text should appear black by default. Suggest you use the IE debugger to trace the styles to establish what is making it gray. You haven't posted any code or a screenshot so it's hard to say what the problem might be.
If it helps, here's an example for setting the text to red:
.red-text .x-form-field {
color: red;
}
new Ext.form.field.ComboBox({
cls: 'red-text',
renderTo: Ext.getBody(),
store: ['First', 'Second', 'Third']
});
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.