2011-08-06 10 views
0

要素にドラッグ可能オプションを設定しない原因は何ですか?スクリプトのドラッグ可能なdiv設定オプション

これらのjquery設定があります。

<link rel="stylesheet" href="http://jqueryui.com/themes/base/jquery.ui.all.css"> 
<script src="http://jqueryui.com/jquery-1.5.1.js"></script> 
<script src="http://jqueryui.com/ui/jquery.ui.core.js"></script> 
<script src="http://jqueryui.com/ui/jquery.ui.widget.js"></script> 
<script src="http://jqueryui.com/ui/jquery.ui.mouse.js"></script> 
<script src="http://jqueryui.com/ui/jquery.ui.resizable.js"></script> 
<script src="http://jqueryui.com/ui/jquery.ui.draggable.js"></script> 

このようなコードでは、ドラッグ可能なオプションを無効にしてください。

 editable.parent().draggable({disable: true}); 
    editable.parent().draggable("option", "disable", true); 

editable.parent()は正しい要素を見つけますが、ドラッグ可能なオプションはオフになっていません。

ありがとうございました。

答えて

0

1)セレクタがOKであることを確認してください

2)

.draggable("disable") 
関連する問題