English 中文(简体)
具体列出关于舱位可分部分的多种取消选择
原标题:Specifying multiple cancel options on jquery draggable elements

“

如上文图表所示,我只想让用户在点击该区域时把这个要素视为“低 d”而所有其他区域不允许通过“易碎".”表示的ging。 以下是现行法典。 只有在我无法将不止一名选任人通过取消选择的情况下,才算罚款。 我曾尝试过一个物体和空间分离的部门,但取得了一些工作。 什么是错了? 请提供帮助。

    $(".e-note").draggable({
        stop: function(e, ui) {
            // alert(ui.position[ top ]);
        },
        cursor:  move ,
        opacity: 0.4,
        cancel:  .e-note-body , // How do i pass more than one selectors here?
        distance:20
    })
最佳回答

您可提供、多位选任人,将几个选任者结合起来:

cancel:  #selector1, .selector-two 

Note the comma (,) separateing each selectedor within the quotpoint.

问题回答

或者,如果你有复杂的布局,而且有许多内容可以取消该拖拉,那么你可以不使用<条码>cancel>。

handle:  .allow_drag_start 

这样,你就不必使用<代码>cancel。

This has an additional con, that I found recently. If your site is using eg. http://touchpunch.furf.com/ to convert mouse-events to touchevents, the cancel really cancels everything, not only drag, but also touch device s native scroll and two-finger pinch zoom. In my case, I wanted scroll and zoom to work on all other elements but the handles.

一般而言,我认为,<代码>handle是应当使用的,cancel是环绕工作。





相关问题
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: &...

热门标签