开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜