如何使用JQuery获取所有表的第一列?

The*_*ght 4 html jquery

如何使用JQuery获取所有表的所有第一列?

下面的代码在IE 6.0中不起作用,因为那里显然不支持first-child:

$('table.tblItemTemplate  td:first-child');
Run Code Online (Sandbox Code Playgroud)

谢谢

wes*_*bos 5

编辑,下面是一个更好的解决方案:

$('table.tblItemTemplate td:first-child').addClass('first'); 
Run Code Online (Sandbox Code Playgroud)