jquery draggable enable and disable

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

    Take a look at the documentation http://api.jqueryui.com/draggable/

    and a example here:

    http://jqueryui.com/draggable/
    

    Have you "included" jquery-ui.js library?

    try on this fiddle! http://jsfiddle.net/3Lrg2/23/

提交回复
热议问题