0

適用しようとしたオブジェクトに.selectable()は、次のエラーが表示されます Object doesn't support property or method 'selectable'。カスタム jquery-ui-1.9.2.custom.js スクリプトを作成したときに ui 機能がダウンロードされなかったためにこれが発生していると仮定selectableして、jquery-ui-1.9.2.custom.js ファイルを開き、選択可能な機能が表示されていない

* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.draggable.js, jquery.ui.resizable.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.tooltip.js

完全な jqueryui (1.9.2) パッケージをダウンロードし、selectable.js を開き、コンテンツをコピーしてカスタム jquery スクリプトに貼り付けました。それでも同じエラーが発生します。Visual Studio を閉じたり開いたりして、再構築を試みました。

選択可能なUIプロパティを適用しようとしている方法は次のとおりです。

$("#myList").selectable();   //apply to <ol> object

ページにスクリプトをロードする方法は次のとおりです。

<script type="text/javascript" src="Scripts/jquery-1.8.3.js"></script>
<script type="text/javascript" src="Scripts/jquery-ui-1.9.2.custom.js"></script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<link href="Scripts/jquery-ui-1.9.2.custom.css" rel="stylesheet" />

ご覧いただきありがとうございます。

4

0 に答える 0