listbox
2015-10-28 20:28
369 查看
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<script type="text/javascript">
function sl()
{
var s = document.getElementById("bca").value;
alert(s);
}
</script>
<body>
<select id="bca" name="abc" multiple="true" onchange="sl();">
<option value="a">111111</option>
<option value="b" selected>222222</option>
<option value="c">333333</option>
</select>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<script type="text/javascript">
function sl()
{
var s = document.getElementById("bca").value;
alert(s);
}
</script>
<body>
<select id="bca" name="abc" multiple="true" onchange="sl();">
<option value="a">111111</option>
<option value="b" selected>222222</option>
<option value="c">333333</option>
</select>
</body>
</html>
相关文章推荐
- 参数传递二维数组
- ssoj2461富可敌国
- Java匿名内部类
- 升级为iOS9后,默认请求类型为https,如何使用http进行请求会报错(引用他人的)
- 算法中涉及的专业英语
- code first网站发布后数据表中没有数据问题
- uvaoj 10859 - Placing Lampposts
- 设置Tomcat的UTF-8编码
- Xendesktop5连接vmware VCSA6.0报错及VCSA6.0更换证书问题
- Family planning
- 树莓派Ekho实现中文语音合成
- 中国大学MOOC-陈越、何钦铭-数据结构 排序(堆排序)
- 【随笔】#与 ##的使用含义与区别
- Tomcat内存溢出
- 为你解析神奇的数据库基本用法
- win10无法新建文件夹怎么办 win10右键新建菜单设置方法
- NYOJ 1112 求次数(map)
- poj 1127 Jack Straws 几何 + 弗洛伊德
- Java工具类之Apache的Commons Lang和BeanUtils
- 分布式消息队列XXL-MQ