I have an input field which will be populated with a calculation, but is read only on load. I am wondering how I can changed the background color, text color, ect once the field is populated. I want the field to be red if the input is less than 0 and green if it is correct input of 0 or greater. The field is read only through the entire process.
Basically, I need to change the read only background color based on the input of the field and not when the page loads using the css input[readonly].