【发布时间】:2011-04-11 05:51:23
【问题描述】:
我有下表:
<table id="mytable">
<tr>
<th class="hidden">id</th>
<th>name</th>
</tr>
<tr>
<td class="hidden">87</td>
<td>Isle of Palms</td>
</tr>
</table>
然后这个 jQuery 代码隐藏 id 列:
<script>
$(function() {
$('.hidden').hide();
});
</script>
单击任何行时,我需要获取 id 单元格隐藏值,但找不到正确的选择器。任何帮助将不胜感激。谢谢。
【问题讨论】:
标签: jquery hidden html-table