2014年1月16日

关于select联动的两种做法

摘要: 第一种方法:function dong(){ var getSheng = document.getElementById("sheng"); var getShi = document.getElementById("shi"); var where = getSheng.selectedIndex; for(var j=0;j<getShi.length;j++){//清除二级城市的选项 getShi.remove(j);//用的是select的remove方法,j是option的索引值 j--; } for(var i=0;i<hong 阅读全文

posted @ 2014-01-16 15:51 一青鸟一 阅读(4952) 评论(0) 推荐(0) 编辑

导航