标题:javascript 中radio不能点击选中 怎么解决
取消只看楼主
CrazyWeed0907
Rank: 2
等 级:新手上路
威 望:5
帖 子:1385
专家分:0
注 册:2006-5-30
 问题点数:0 回复次数:1 
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>
搜索更多相关主题的帖子: radio javascript 
2007-12-21 09:58
CrazyWeed0907
Rank: 2
等 级:新手上路
威 望:5
帖 子:1385
专家分:0
注 册:2006-5-30
得分:0 
谢谢

“十步杀一人,千里不留行。事了拂衣去,深藏身与名。”
2007-12-21 13:17



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-193628-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.232436 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved