标签: jquery html
如何使用JQuery获取所有表的所有第一列?
下面的代码在IE 6.0中不起作用,因为那里显然不支持first-child:
$('table.tblItemTemplate td:first-child');
由于
答案 0 :(得分:5)
编辑,下面是一个更好的解决方案:
$('table.tblItemTemplate td:first-child').addClass('first');