I am using jQuery 1.6.2
I am having a little trouble tweaking my jQuery. I need to find a specific cell and change its color attribute.
The first row may or may not be the one that I am looking for. The row I am looking for may or may not have a class. If the first row has a class of “TableSubHead”, then I don’t want to turn the last cell of its row yellow. I want to move on to the following row, and turn its last cell yellow.
In pseudocode, it should read like this:
Look in the OrderHeaderTable. Find the first row that doesn’t have a class of TableSubHead and turn the last cell yellow.
Here’s my code
$("#OrderHeaderTable tr:first(:not.TableSubHead").children("td:last").css("background", "yellow");
Can you help me tweak it to get what I want?
I believe
should be