changing background of table

ChocolateCake

New Member
im planning to change the background of my table if the value is equal to 130 the color of the table background will be red here is my code it doesnt work so can you improve my code thanks\[code\]var computeValues = function(){ var id = $(this) .attr("id") .replace("prelim_", "") .replace("midterm_","") .replace("final_", ""); p = $("#prelim_" + id).val(); m = $("#midterm_" + id).val(); f = $("#final_" + id).val(); Compute(p, m, f, id); if(p, m, f ==130) { $(this).css('background-color','red'); }};\[/code\]
 
Top