日期:2014-05-16  浏览次数:20374 次

JavaScript二级联动下拉菜单

< html >
< head >
< title >
test
</ title >
< script?language = " javascript " >
// var?select1_len?=?document.frm.s1.options.length;
var?select2? = ? new ?Array( 4 );

for ?(i = 0 ;?i < 4 ;?i ++ )?
{
?select2[i]?
= ? new ?Array();
}
// 定义基本选项
select2[ 0 ][ 0 ]? = ? new ?Option( " 请选择 " ,? " ? " );
select2[
1 ][ 0 ]? =