JS获取单选框得代码
来源:互联网 发布:查询价格区间 sql 编辑:程序博客网 时间:2024/06/06 15:04
<!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=gb2312" />
<title>无标题文档</title>
</head>
<script language="javascript1.2">...
function check_reply()
...{
var collection = document.getElementsByName("m");
for (var i=0;i<collection.length ; i++)
...{
if (collection[i].checked)
...{
a=collection[i].value;
if(a=="11")...{
alert(222323); } else
...{alert(1122);}
}
}
}
</script>
<body>
<form id="form1" name="oform" method="post" action="">
<label>
<input type="radio" name="m" value="11" checked="checked" />
</label>
<label>
<input type="radio" name="m" value="22" /><input name="22" type="button" value="22323232" onclick="check_reply()"/>
</label>
</form>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<script language="javascript1.2">...
function check_reply()
...{
var collection = document.getElementsByName("m");
for (var i=0;i<collection.length ; i++)
...{
if (collection[i].checked)
...{
a=collection[i].value;
if(a=="11")...{
alert(222323); } else
...{alert(1122);}
}
}
}
</script>
<body>
<form id="form1" name="oform" method="post" action="">
<label>
<input type="radio" name="m" value="11" checked="checked" />
</label>
<label>
<input type="radio" name="m" value="22" /><input name="22" type="button" value="22323232" onclick="check_reply()"/>
</label>
</form>
</body>
</html>
- JS获取单选框得代码
- 实用得 JS 代码
- 用JS获取DropDownList选中得值
- 用JS获取DropDownList选中得值
- js获取url指定得参数值
- 用得着的JS代码
- js代码 获取日期
- JS正则表达式获取字符串中得特定字符
- 万得——python接口获取A股代码
- 这段js代码得拯救你多少时间
- JS获取对象代码示例
- js获取URL参数代码
- JS获取鼠标坐标代码
- js代码获取服务器端时间
- js获取日期的代码
- js 获取农历的代码
- JS获取剪贴板内容的代码
- JS获取客户端网卡物理地址(MAC) 代码
- C语言嵌入式系统编程修炼之道——背景篇
- 技术开发频道一周精选(7月13)
- TCP/IP基础
- 技术开发频道一周精选2007-7-20
- 使用 .NET 对事件进行编程
- JS获取单选框得代码
- 甜蜜的折磨!~
- TCP/IP和Internet
- TCP/IP概述
- 什么是回调函数
- 计划之死--VeryFishiness
- IP网络中的名字和地址
- 使用SQL Server时最容易忽略的21个问题
- ARP和RARP