이 질문에 대한 답변을 얻으려고합니다. 자바 스크립트에서 드래그 가능한 옵션을 해제하려면 어떻게해야합니까? API 문서에자바 스크립트에서 드래그 가능한 옵션 설정
.draggable ({disable : true});
또는
.draggable ("옵션", "사용 안 함", TRUE);
나도 마찬가지입니다. 내가 가지고있는 도서관은 다음과 같습니다.
<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()는 올바른 요소를 찾을 않지만, 드래그 할 수있는 옵션이 꺼져 있지 않습니다.
도움 주셔서 감사합니다.