首页 新闻 会员 周边

RadioButtonList 中获取单选按钮的值 单选按钮只能选择一个 并且点击单选时能触发jqery事件

0
悬赏园豆:20 [已关闭问题] 关闭于 2019-02-25 09:20

是否使用备件:<asp:RadioButtonList ID="RBT" runat="server">
<asp:ListItem Value="0" Text="是"></asp:ListItem>
<asp:ListItem Value="1" Text="否"></asp:ListItem>
</asp:RadioButtonList>
当点击 是 时 触发jqery事件:
<script>
$(document).ready(function () {
$("#<%=RBT.ClientID%>").click(function () {
alert(1);

              var str = "";
              str += "<table><tr><td></td><td></td></tr></table>"
              $("#div").append(str);

          });
      });

进行拼串
<div id="div">
</div>
在div中拼出一个表格

编程菜小鸟的主页 编程菜小鸟 | 菜鸟二级 | 园豆:239
提问于:2018-12-26 14:44
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册