jQuery 1.64 を使用して以下のコードで「選択メニュー」を更新しようとしています (どのバージョンを使用してもかまわないようですが、このバージョンを使用する必要があります)。selectmenu() 関数を実行しようとすると、次のエラーが発生します。
エラー:
Uncaught TypeError: undefined is not a function (index):22(anonymous function)
jQuery.event.dispatch jquery-git2.js:4402elemData.handle
フィドル: http://jsfiddle.net/DNaFv/
html
<select id="test">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
jQuery:
$("#test").selectmenu("refresh");