$('option').hide()
selectmenu jquery プラグインを同時に使用して select( ) からオプションを削除または非表示にしようとすると、削除したいオプションが表示されます。selectmenu を破棄すると、通常の html ドロップダウン選択が表示され、オプションが削除されます。私は何を間違っていますか?
1897 次
1 に答える
2
オプションを変更または削除したいとします。
デモページhttp://jquery-ui.googlecode.com/svn/branches/labs/selectmenu/index.htmlFirebug コンソールまたは同様のものでそれを試すことができます 。
$("select#speedC").find("option:first").remove();
//and then you can refresh with
$("select#speedC")
.selectmenu("destroy") //destroy the custom select menu
.selectmenu({style:'dropdown'}); //replace with the new custom select menu
これは最善のオプションではありませんが、更新は機能しないようです。
お知らせ下さい。ドナート。
于 2012-04-20T14:28:29.733 に答える