I'm using the following snippit of code in 'footer-extras.php' and it's been working well...
Code: Select all
<script>
$j(function(){
$j('td.service-pctused').each(function(){
var eff = $j(this).text();
if ((eff < 90.00) && (eff > 75.00)){
$j(this).addClass('warning');
}
})
})
</script>
My fields are
Current Stock - prod.currentstock
Minimum Stock - prod.minstock
I know I need to pull the fields are variables and compare; but that's where I'm running into the issue of how to pull both variables and the "if" statement that makes it happen correctly.
Any advise?
Thanks!
