开发者社区 问答 正文

求助js怎么取到RadioButton的id的问题?

代码如下
js :
screenshot
页面代码: RadioButton 是在两个Panel内
screenshot
错误为:
screenshot
这里取不到!
screenshot
求大神 指点迷津~

展开
收起
吴孟桥 2016-05-31 22:34:30 2291 分享 版权
1 条回答
写回答
取消 提交回答
  • 你那样取肯定取不到的,因为RadioButton1是服务端控件的id,你要取只能查看网页代码,找到页面生成的radio button的id,
    类似这样的,id="XXX_RadioButton1"
    document.getElementById('<%=RadioButton1.ClientID %>').checked

    2019-07-17 19:22:27
    赞同 展开评论
问答分类:
问答地址: