English 中文(简体)
我只想选择那些无法理解的“抵消”的拖网。
原标题:I want to make selectable only those td where unselectable="off"

我正在建立一个房间保留制度。 因此,我只想选择那些无法理解的“抵消”的拖车。 请帮助我这样做。

这是我的《html法典》,这里是我用来挑选他们的文字。

<script>
$(function() {
    $( "table" ).selectable(
    {
        filter:  tbody td unselectable:off  
    }
    );
});
</script>

But nothing is happening. Please help me out with this problem.

            <tr>
                <td unselectable="on" resource="B" style="width: 79px; border-right: 1px solid #000000;
                    border-left: 1px solid #000000; border-bottom: 1px solid #000000; background-color: #ECE9D8;
                    font-family: Tahoma; font-size: 8pt; color: #000000; cursor: default;">
                    <div unselectable="on" style="margin-left: 4px; height: 19px; line-height: 19px;
                        overflow: hidden;">
                        Room B</div>
                </td>
                <td valign="top" unselectable="on" style="width: 1px; border-bottom: 1px solid black;
                    background-color: #FFF4BC;">
                    <div unselectable="on" style="position: relative; height: 19px; overflow: none;">
                        <div unselectable="on" onclick="javascript:event.cancelBubble=true;alert( 2 );" style="position: absolute;
                            left: 200px; top: -1px; width: 398px; height: 19px; border: 1px solid #000000;
                            background-color: #FFFFFF; white-space: nowrap; overflow: hidden; font-family: Tahoma;
                            font-size: 11px; cursor: pointer;">
                            <div unselectable="on" style="width: 400px; margin-left: -1px; height: 2px; background-color: Blue;
                                font-size: 1px; position: relative;">
                            </div>
                            <div unselectable="on" style="width: 398px; height: 1px; background-color: #000000;
                                font-size: 1px; position: relative;">
                            </div>
                            <div unselectable="on" style="display: block; padding-left: 1px;">
                                Event 3
                            </div>
                        </div>
                    </div>
                </td>
                <td unselectable="off" onclick="javascript:alert( 2012-04-01T00:00:00, B );" onmouseover="this.style.backgroundColor= #FFED95 ;"
                    onmouseout="this.style.backgroundColor= #FFF4BC ;" style="border-bottom: 1px solid #000000;
                    width: 19px; background-color: #FFF4BC; cursor: pointer;">
                    <div unselectable="on" style="display: block; width: 18px; height: 19px; border-right: 1px solid #EAD098;">
                        <!-- -->
                    </div>
                </td>
                <td unselectable="off" onclick="javascript:alert( 2012-04-02T00:00:00, B );" onmouseover="this.style.backgroundColor= #FFED95 ;"
                    onmouseout="this.style.backgroundColor= #FFFFD5 ;" style="border-bottom-width: 1px;
                    border-bottom-style: solid; border-bottom-color: rgb(0, 0, 0); width: 20px; cursor: pointer;
                    background-color: rgb(255, 255, 213);">
                    <div unselectable="on" style="display: block; width: 19px; height: 19px; border-right: 1px solid #EAD098;">
                        <!-- -->
                    </div>
                </td>
                <td unselectable="off" onclick="javascript:alert( 2012-04-03T00:00:00, B );" onmouseover="this.style.backgroundColor= #FFED95 ;"
                    onmouseout="this.style.backgroundColor= #FFFFD5 ;" style="border-bottom: 1px solid #000000;
                    width: 20px; background-color: #FFFFD5; cursor: pointer;">
                    <div unselectable="on" style="display: block; width: 19px; height: 19px; border-right: 1px solid #EAD098;">
                        <!-- -->
                    </div>
                </td>

最佳回答
问题回答

暂无回答




相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签