jQuery UI SelectMenuを実装しようとしていますが、ブラウザのコンソールで何度も同じエラーが発生します。ここでjQuery UI SelectMenuエラー
は、HTMLコード
<select name="files" id="files">
<optgroup label="Scripts">
<option value="jquery">jQuery.js</option>
<option value="jqueryui">ui.jQuery.js</option>
</optgroup>
<optgroup label="Other files">
<option value="somefile">Some unknown file</option>
<option value="someotherfile">Some other file with a very long option text</option>
</optgroup>
</select>
とJavaScript/jQueryのコード
$(function() {
$("#files").selectmenu();
});
ITSはjQueryのUIのWebサイトから同じですが、私が動作しませんです。
これはエラーです:
jquery-3.0.0.js:9779 Uncaught TypeError: elem.getClientRects is not a function
私は誰もがアイデアを持っている願っています。
はjquery-ui
古いまたは最新のものであるかもしれないとjquery
バージョン>= 3.0
との互換性の問題があります。あなたに
? –
最新の1.11.4 – wiifree
jquery(2.4)のバージョンをチェックしてもうまくいきますが、誰かが私が3.0でエラーになる方法を見つけることを願っています。私は3.0を使用したい – wiifree