ASP高手给看看什么意思?

来源:百度知道 编辑:UC知道 时间:2024/05/04 05:45:05
<select name="depart" id="select7" onChange="changelocation1(document.addform.depart.options[document.addform.depart.selectedIndex].value)">

document.formname.elementname

changelocation1 这个是自定义函数

其实可以简单写成

<select name="depart" id="select7" onChange="changelocation1(this.value)">

或者
<select name="depart" id="select7" onChange="changelocation1(this.options[this.selectedIndex].value)">

应该是在一个列表框里的,意思是当这个框里的值发生变化时,另一个选择列表框的值也跟着变成这个值.