请教一下关于document.form1.select1.options[]的问题,请帮忙!!! document.form1.select1.options[document.form1.select1.selectedIndex].value 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 再用if语句或case语句作判断,替换就可以了 <select name="select1" onchange="alert(document.form1.select1.options[document.form1.select1.selectedIndex].text)"><option value="1">你</option><option value="2">我</option><option value="3">他</option></select> <form name=form1><select name="select1" onchange="alert(document.form1.select1.options[document.form1.select1.selectedIndex].text)"><option value="1">你</option><option value="2">我</option><option value="3">他</option></select></form> 或者:<select name="select1" onchange="alert(this.options[this.selectedIndex].text)"><option value="1">你</option><option value="2">我</option><option value="3">他</option></select> 1.<select name="select1" onchange="alert(this[this.selectedIndex].innerText)"><option value="1">你</option><option value="2">我</option><option value="3">他</option></select>2.<select name="select1" onchange="alert(options[selectedIndex].innerText)"><option value="1">你</option><option value="2">我</option><option value="3">他</option></select>3.<select name="select1" onchange="alert(this[selectedIndex].innerText)"><option value="1">你</option><option value="2">我</option><option value="3">他</option></select> 求助!求助!js的MD5加密 弹出错误 170行 "length" 为空或不是对象 状态栏提示网页有错误 小问题也是大问题 这段js那里有错误呀··麻烦大家帮忙看看 请高手们指点一下,为什么我层的背景颜色显示不出来呢! 在INPUT框中输入的数字不能大于原来的数组赋给给它的值 关于createpopup的问题? 请问table列互换的函数.在线等 谷歌浏览器 js操作iframe 奇怪现象 求解释 不知道如何把定值px修改为百分比 经常有网站修改IE主页设置,谁能写个javascript代码恢复主页设置? 如何让用户选择是否保存密码?(急用)
<option value="1">你</option>
<option value="2">我</option>
<option value="3">他</option>
</select>
<select name="select1" onchange="alert(document.form1.select1.options[document.form1.select1.selectedIndex].text)">
<option value="1">你</option>
<option value="2">我</option>
<option value="3">他</option>
</select>
</form>
<option value="1">你</option>
<option value="2">我</option>
<option value="3">他</option>
</select>
<select name="select1" onchange="alert(this[this.selectedIndex].innerText)">
<option value="1">你</option>
<option value="2">我</option>
<option value="3">他</option>
</select>2.
<select name="select1" onchange="alert(options[selectedIndex].innerText)">
<option value="1">你</option>
<option value="2">我</option>
<option value="3">他</option>
</select>3.
<select name="select1" onchange="alert(this[selectedIndex].innerText)">
<option value="1">你</option>
<option value="2">我</option>
<option value="3">他</option>
</select>