javascript 中radio不能点击选中 怎么解决
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.<html xmlns="http://www. >
<head>
<title>无标题页</title>
<script type="text/javascript" language="javascript">
function create()
{
var oRad1 = document.createElement("input");
oRad1.setAttribute("type","radio");
oRad1.setAttribute("id","rad1");
oRad1.setAttribute("name","aaa");
var oRad2 = document.createElement("input");
oRad2.setAttribute("type","radio");
oRad2.setAttribute("id","rad2");
oRad2.setAttribute("name","aaa");
document.body.appendChild(oRad1);
document.body.appendChild(oRad2);
}
</script>
</head>
<body>
<input id="Button1" type="button" value="button" onclick="create()" />
</body>
</html>