选公司,下面出现该公司下的部门。实现联动后,我在后台无法取到部门的select value.
//根据company获取department
function LoadDepartment(id) {
$.getJSON("../GetDepartment.ashx?companyid=" + id, function(data) {
$("#ddlDepartment").html("");
for (var i = 0; i < data.length; i++) {
$("#ddlDepartment").append($("<option></option>").val(data[i].DepartmentID).html(data[i].DepartmentName));
};
});
}