I am trying to set a background color to a textfield when its value is greater than 75. so I added the below code to the listener
listeners: {
beforeRender: function(e) {
if (someValue >= 75) {
e.style = " background-color: #00CC99";
}
}
}
but i get something like below when it renders,

is there a way to make the green color visible in the entire text box instead of just buttom? I figured out that it is not displaying as intended because of the default CSS’s background image. But i want to change the css on change of the value and not write seperate css for just one textbox. Is there a way to do it?
Just get rid of the background image:
If
eis a DOM object useelement.style.property = 'value'instead:For the sake of completeness the definition in ExtJS (according to the ExtJS “Form Field Types” demo):