这样写为什么出错了?
xujie 2004-04-17 01:21:27 <script language="JavaScript">
function test(obj)
{
if obj.checked 是不是不能这么判断的?
{
alert(obj.value);
}
}
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body><form action="" method="get" name="thisform">
<input type="submit" name="Submit" value="提交">
<input type="radio" name="r1" value="1" onClick="test(this)">
<input type="radio" name="r1" value="2">
</form></body>
</html>