开发者

Trying to select all but the 1st TD'd in the last row in a table using JQuery

开发者 https://www.devze.com 2023-01-07 03:56 出处:网络
I have a table that con开发者_如何转开发tains totals at the end. I need to select all TD\'s in the last row except the 1st TD which says the word TOTAL.

I have a table that con开发者_如何转开发tains totals at the end. I need to select all TD's in the last row except the 1st TD which says the word TOTAL.

This does not seem to work, any idea's?

$(".tableclass tbody tr:last(td:not(first-child))").css({'color':'#FF0000'});


this should do it ..

$('.tableclass tbody tr:last td:not(:first-child)').css({'color':'#FF0000'});
0

精彩评论

暂无评论...
验证码 换一张
取 消