jquery draggable enable and disable

后端 未结 5 2078
耶瑟儿~
耶瑟儿~ 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:08

    Use one button to enable and disable

    $("#container").draggable({disabled:false});
    $("#container").draggable({disabled:true});
    

    Simple Example Given Below:

提交回复
热议问题