【发布时间】:2011-11-15 20:44:31
【问题描述】:
我想获取表头的整个列。
比如我想选择表头“Address”隐藏地址栏,选择“Phone”表头显示对应栏。
<table>
<thead>
<tr>
<th id="name">Name</th>
<th id="address">Address</th>
<th id="address" class='hidden'>Address</th>
</tr>
</thead>
<tbody>
<tr>
<td>Freddy</td>
<td>Nightmare Street</td>
<td class='hidden'>123</td>
</tr>
<tr>
<td>Luis</td>
<td>Lost Street</td>
<td class='hidden'>3456</td>
</tr>
</tbody>
我想做http://www.google.com/finance?q=apl 之类的事情(请参阅相关公司表)(点击“添加或删除列”链接)
【问题讨论】:
-
不是这个帖子:stackoverflow.com/questions/2132034/jquery-select-column 是关于同样的问题吗?
-
我认为第三列是“电话”列?
-
为列着色/着色而不是添加/删除它:stackoverflow.com/questions/15651408/…
标签: javascript jquery