I have script I am using here: http://jsfiddle.net/6b2yy/1/
It’s supposed to change the background color of each individual table depending on the variable value. However, it does not work as it is now because the variables have a decimal and % after them. How can I make it only read the first two digits before the decimal, without changing what is displayed on the page. One thing to note is that on my site those are variables displayed, not static numbers.
Use the parseInt function
I guess in your case it would be
Demo