select2[2][3] = new Option(" ", "");
select2[2][4] = new Option(" ", "");
select2[2][5] = new Option(" ", "");
select2[2][6] = new Option(" ", "");
select2[2][7] = new Option(" ", "");
二级联动菜单
var select1_len = document.all.YWLX.options.length;
var select2 = new Array(select1_len);
//把一级菜单都设为数组
for (i=0; i<select1_len; i++)
{
select2[i] = new Array();
}
//定义基本选项
select2[1][0] = new Option("请选择", "");
select2[1][1] = new Option("ID编号", "ID");
select2[1][2] = new Option("业务流水号", "OPERATIONID");
select2[1][3] = new Option("行政区划", "ZONEID");
select2[1][4] = new Option("部门编号", "DEPARTMENTID");
select2[1][5] = new Option("创建人", "CREATEPERSON");
select2[1][6] = new Option("创建时间", "CREATETIME");
select2[1][7] = new Option("流程状态", "STATUS");
select2[2][0] = new Option("请选择", "");
select2[2][1] = new Option("ID编号1", "ID");
select2[2][2] = new Option("业务流水号1", "OPERATIONID");
//联动函数
function redirec(x)
{
var temp = document.all.CYLX;
for (i=0;i<=select2[x].length;i++)
{
temp.remove(i);
}
temp.remove(select2[x].length);
for (i=0;i<select2[x].length;i++)
{
temp.options[i]=new Option(select2[x][i].text,select2[x][i].value);
}
temp.options[0].selected=true;
}
<html:optionsCollection property="departmentMap" label="value" value="key"/> Map 形式显示