100分求onchange()写法: 如果不写onChange(),有没有其他办法 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 this.form.department.options[0].value=this.options[this.selectedIndex].value;this.form.department.options[0].text=this.options[this.selectedIndex].text; 楼上的,你传给department.的值是什么啊?我要传的是:departmentID 容易:...<option value="<%=subjectID%>" depID=<%=departmentID%> depTxt=<%=department %>><%=subject%></option>...然后,在第一个select的onchange事件里面调的函数里面这样写:document.all.department.options[0].value=document.all.title.options[document.all.title.selectedIndex].depID;document.all.department.options[0].text=document.all.title.options[document.all.title.selectedIndex].depTxt;搞定!或许你是有form的,那么就把document.all都换成你的form的名字,就可以了。 ext.net多级表格 RowSelectionModel行选择模式 错乱显示 动态树 document.body.focus()问题 ckeditor4开发插件 怎么在dialog中显示一个html网页内容 lightbox与中文路径 一个入门的问题,需要帮助~~~~~谢谢 求助中在线等 图片自动缩放的 [原创]getElementById 用法的一个技巧 如何在javascript里面调用一个普通的程序? multipart/form-data 表单上传,如何取得文件类型? 自做的控件有一方法,返回VARIANT变量类型,在javascript中如何能使用该VARIANT数据?
this.form.department.options[0].text=this.options[this.selectedIndex].text;
<option value="<%=subjectID%>" depID=<%=departmentID%> depTxt=<%=department %>><%=subject%></option>
...然后,在第一个select的onchange事件里面调的函数里面这样写:document.all.department.options[0].value=document.all.title.options[document.all.title.selectedIndex].depID;
document.all.department.options[0].text=document.all.title.options[document.all.title.selectedIndex].depTxt;搞定!
或许你是有form的,那么就把document.all都换成你的form的名字,就可以了。