Currently, my goal is to update the color of a span tag only if its value is 0. I attempted to achieve this with the following code:
$('span.number:contains("0")').css('color', '#C1C1C1');
However, this code also changes the color if the number is 50. Is there a method to alter the color of this tag or class exclusively when it is equal to 0?