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

Is there a way to make green color visible throughout the text box, and not just buttom? I realized that it doesn't display as intended, due to the default CSS background image. But I want to change css to change the value and not write separate CSS for only one text field. Is there any way to do this?
source
share