I have a single page application where a number of fields contain a weight. If the weight is in pounds I want to show it in aquamarine, if in kilograms in yellow. The color to be used is in sUnitColor. All fields containing a weight have a class='weight'. I change colors with:
$('.weight').css('color',sColorUnit);
This works fine throughout the page except within table td cells even though they have class='weight'. They remain unchanged.
Is there something special about table cells that precludes this working?
I've also tried:
$('td .weight').css('color',sColorUnit);
But that doesn't work either.
Any and all suggestions will be much appreciated.