首页 > 代码库 > 层的三级联动

层的三级联动

/部门下拉选单绑定数据
        function CreateDeptEntity(dataList) {
            var select = "#setdept";
            jQuery(select).empty();
            jQuery(select).append("<OPTION value=http://www.mamicode.com/0>请选择");
            if (dataList != null && dataList != undefined) {
                for (var k = 0; k < dataList.length; k++) {
                    jQuery(select).append("<OPTION value="http://www.mamicode.com/+ dataList[k].DeptID +">" + dataList[k].DeptName + "</OPTION>");
                }
            }
        };