Thank you for your reply Serhii
It is JQM.
However, it does get a bit more complicated than that an my apologies for not explaining the complexity in the first instance.
I have two temperature thresholds a minimum and maximum threshold.
Lets assume Temp is 150
If the Temp goes below 100 then Color must be "below" OR if the Temp exceeds 200 then the color must be "above".
Would something like this work
$(element).addClass(value.myValue < 100 ? "below");
$(element).addClass(value.myValue 200 ? "above");
So if neither condition exists, the color will remain as is.
Thank you