JQUERY tools: is it possible to expose two elements?
I need to expose() 2 tr el开发者_StackOverflowements at the same time. Is it possible somehow?
As with any other jQuery function. Just use jQuery selectors:
$('#tr1, #tr2').expose();
If you mean make visible, then sure.
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();
});
If this is about http://flowplayer.org/tools/demos/toolbox/expose/index.html
I'm afraid you might not be able to do it with 2 tr's at the same time.
精彩评论