PDA

View Full Version : fieldCls is not working



mvosantos
5 May 2012, 4:20 AM
Hello, I have my own css file with the style:
.field_readonly
{
background-color: #D0E2E8;
background-image: none;
}
On my textfield, I wanna apply this css using the property fieldCls, but is not working.
How can I apply this css style to my field?
If I use the follow line, it works correctly:
fieldStyle : 'background-color: #D0E2E8; background-image: none;'

mitchellsimoens
7 May 2012, 6:12 AM
What version are you using? I just tested with 4.1.0 and the <input> element got the CSS class I specified.

mvosantos
7 May 2012, 9:24 AM
Im using 4.0.7

mitchellsimoens
7 May 2012, 12:38 PM
So I'm not able to reproduce as the fieldCls class is placed on the <input> element.