首页 > Web开发 > 详细

[转载]js 获取ASP RadioButtonList 选中的值

时间:2016-11-05 15:04:23      阅读:299      评论:0      收藏:0      [点我收藏+]

var planList=document.all (‘rblPlanType‘);
    for(var i=1;i<planList.length;i++)
    {
     if(planList[i].checked)
     {
      var planType=planList[i].value;
     }
    }   

  <asp:RadioButtonList ID="rblPlanType" runat="server" RepeatDirection="Horizontal" >
                    <asp:ListItem  Value ="周"   Selected ="true" >周</asp:ListItem>
                    <asp:ListItem Value ="月"  >月</asp:ListItem>
                    <asp:ListItem Value ="季">季</asp:ListItem>
                   
                    <asp:ListItem Value ="年">年</asp:ListItem>
                    </asp:RadioButtonList></td>

[转载]js 获取ASP RadioButtonList 选中的值

原文:http://www.cnblogs.com/AaronBear/p/6032966.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!