<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<select name="select" id="r" size="1" onChange="alert(this.value)">
<option value="20">20</option>
<option value="30">30</option>
<option value="40">40</option>
</select>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<select name="select" id="r" size="1" onChange="alert(this.value)">
<option value="20">20</option>
<option value="30">30</option>
<option value="40">40</option>
</select>
</body>
</html>
解决方案 »
- 谁知道用JavaScript如何读取国际化的资源文件、谢谢
- 怎么用js控制页面100%显示
- 关于Js中对象的一些问题。
- 为什么这个jquery放大镜在IE7,火狐,谷歌都正常但是在IE8就不正常了呢
- 同一页面中需要多次使用到js广告轮播插件,只有第一个正常,请教哪里冲突了
- Jquery1.4 鼠标移上去行不能变色
- 怎样把小数变成.00格式,判断回车后转到下个输入域?
- 有关 htc 的问题,PROPERTY 已经PUBLIC,却无法访问
- wsj(骆驼) 进来了!多谢你的帮忙,大家也可以来转转 :)
- 用js如何关闭一个ie??
- 关于switch里面动态生成case
- 求解一条js的正则表达式,要求过滤和排除几个字符串
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<select name="select" id="r" size="1" onChange="alert(this.options[selectedIndex].text)">
<option>20</option>
<option>30</option>
<option>40</option>
</select>
</body>
</html>