`
tianyalinfeng
  • 浏览: 432899 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

JQUERY TABLE 中的列选择

阅读更多

1.$("table tr").find("td:first").html(11);

 

2.$("table tr").each(function(){
$(this).find("td:eq(1)").html(22);     
})

 

3.$("table tr td:first-child").html("first");
$("table tr td:last-child").html("last")

 

4.$("table tr td:nth-child(3)").html(33)
$("table tr td:nth-child(odd)").html(44)
$("table tr td:nth-child(even)").html(55)
$("table tr td:nth-child(3n+1)").html(66)

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics