跳转到主内容
新派编程网 - 新潮编程理念,全新技术课堂!

哪位高手可以写个2级联动select 的例子 看看

谁可以写个2级联动select 的例子 看看写个简单的例子 写一下注释 研究一下 谢了 各位大虾------解决方案--------------------function college2subject(collegeid){var allcount=0;subjectArray=new Array();php
document.studentform.subject.length=0;document.studentform.subject.options[document.studentform.subject.length]=new Option("所有专业","");var college_id=collegeid;var i;for(i=0;i{if(subjectArray[i][2]==college_id){document.studentform.subject.options[document.studentform.subject.length]=new Opiton(subjectArray[i][1],subjectArray[i][0]);alert("ok");}}}alert("ok");php
请选择学院所有学院while($myrow1=mysql_fetch_array($result)){?>" selected="selected">------解决方案--------------------select筛选_water板块请选择water1water2water3water4water5二级板块请选择water5-5water5-6

相关文章