buttons can't made draggables by jQuery UI draggable()

核能气质少年 提交于 2019-11-30 11:09:10

Using cancel: false seems to work for me.

    $(function() {
    $( "#draggable" ).draggable({
        cancel: false
    });
});

jsfiddle

I guess without the cancel only the default click event of the button fires and with cancel you prevent the default click event.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!