View Full Version : Change the style of a form field (not the label's)

31 Jul 2012, 2:55 PM
How can I change the style (font-color, background) of a field? I tried "style" config but it changes the label's style. Tried readOnlyCLs, that too changes the label's style. I need to change the field's style itself not the label's. I even tried givin it an id and making the respective css but still the style goes to label. Is there any way to do it?

31 Jul 2012, 3:03 PM
ok found it. It's "fieldCls" config. Although i think readOnlyCls should be applied to the field not the label. Or there should be two cls' one for each like readOnlyLabelCls and readOnlyFieldCls.