How can I add a class to the first and second td in each tr?
THIS ONE 7条回答 抹茶落季 (楼主) 2020-12-05 04:46 You can just pick the next td: $(".location table tbody tr td:first-child").next("td").addClass("black"); 0 讨论(0) 查看其它7个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
You can just pick the next td:
$(".location table tbody tr td:first-child").next("td").addClass("black");