我发现了其他问题,通过这些问题我学会了如何使用隐藏第一行和(第一行的)第一个单元格;
$('table#truetable tr:first').hide();
和
$('table#truetable td:first').hide();
但是,如果我想使用这种方法隐藏第二行的第一个单元格,该怎么办?
最佳答案
$('#truetable tr:eq(1) td:first').hide();
jQuery(':eq(index)')
index
Zero-based index of the element to match.
关于javascript - 使用 JavaScript 隐藏特定的 HTML 表格单元格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11277212/