私のページには、ASP ページにこのコーディングを含む一連の jQuery ドロップダウンがあります (一部はわずかに変更されていますが、それは関係ありません)。
jQuery(document).ready(function () {
jQuery(function () {
jQuery("#UCStyle1 select").multiselect({
header: true,
height: 175,
minWidth: 240,
size: 3,
classes: '',
checkAllText: 'Check all',
uncheckAllText: 'Uncheck all',
noneSelectedText: '0 Selected',
selectedText: '# selected',
selectedList: 0,
show: null,
hide: null,
autoOpen: false,
multiple: true,
position: {},
appendTo: "body"
});
});
コード ビハインドでは、ページの読み込み時にこれらのドロップダウンのいずれかで単一の値を選択する場合、次のように実行できます。
sCountry.SelectedValue = "USA";
複数選択ですべての値を選択するにはどうすればよいですか?