i have used this script for the jquery multiselect in that i am getting values in the array based on the values in the array it should be checked in the jquery multiselect..
asp dropdownlist id:ddlDepartment
hdnDepartment in this hidden field i will get all the values which is been checked
$(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
}
}
});
Put hdnDepartment in a surrounding div
and the jquery should be