我需要同时暴露() 2 个 tr 元素。有可能吗?
问问题
319 次
3 回答
3
与任何其他 jQuery 函数一样。只需使用 jQuery 选择器:
$('#tr1, #tr2').expose();
于 2011-04-04T12:02:26.527 回答
1
如果你的意思是让可见,那么确定。
CSS:
tr { display: none; }
HTML:
<span class="exposeNow">EXPOSE</span>
<table>
<tr class="exposeMe">
<td>Some stuff</td>
<td>in here too</td>
</tr>
<tr class="exposeMe">
<td>Some stuff</td>
<td>in here too</td>
</tr>
<tr>
<td>This one won't</td>
<td>get shown on click</td>
</tr>
<tr>
<td>This one won't</td>
<td>get shown on click</td>
</tr>
</table>
jQuery :
$("span.exposeNow").click(function(){
$("tr.exposeMe").show();
});
于 2011-04-04T12:03:36.730 回答
0
如果这是关于http://flowplayer.org/tools/demos/toolbox/expose/index.html
恐怕您可能无法同时使用 2 个 tr。
于 2011-04-04T12:34:21.137 回答