jquery multiselect でチェックする必要がある配列の値に基づいて配列の値を取得しているという点で、jquery multiselect にこのスクリプトを使用しました。
asp ドロップダウンリスト id: ddlDepartment
この非表示フィールドのhdnDepartmentは、チェックされたすべての値を取得します
$(document).ready(function () {
var revalue = new Array();
if (document.getElementById("<%=hdnDepartment.ClientID %>").value != "") {
var str = document.getElementById("<%=hdnDepartment.ClientID %>").value;
var obj = $("#<%=ddlDepartment.ClientID %>");
alert(obj);
revalue = str.split(',');
var i;
for (i = 0; i < revalue.length; i++) {
//should reload that values in the checked in jquery multiselect
}
}
});