jquery draggable enable and disable

后端 未结 5 2085
耶瑟儿~
耶瑟儿~ 2020-12-30 05:43

Ive tried anything to do this, but always get the same error

$(\".tooltip\").draggable(\'disable\');

Error: cannot call methods on draggabl

5条回答
  •  别那么骄傲
    2020-12-30 06:26

    try using .unbind('ondrag') to remove the event from your element.

    sorry I think it should be $("tooltip").unbind('draggable') not 100% sure on event name.

提交回复
热议问题