当前位置:Gxlcms > JavaScript > js判断radiobuttonlist的选中值显示/隐藏其它模块的实现方法

js判断radiobuttonlist的选中值显示/隐藏其它模块的实现方法

时间:2021-07-01 10:21:17 帮助过:8人阅读

js判断radiobuttonlist的选中值显示/隐藏其它模块的实现方法

  1. <script>
  2. $(function () {
  3. var SelectVal = $("input[name='rblGJS']:checked").val();
  4. if (SelectVal == 1) {
  5. $("#gjsbh").show();
  6. }
  7. $("#<%=rblGJS.ClientID %>").change(function () {
  8. SelectVal = $("input[name='rblGJS']:checked").val();
  9. if (SelectVal == 1) {
  10. $("#gjsbh").show();
  11. }
  12. else {
  13. $("#gjsbh").hide();
  14. }
  15. });
  16. })
  17. </script>
  18. <tr>
  19. <td align="right" class="label_style">是否估价师:</td>
  20. <td align="left" class="content_style">
  21. <asp:RadioButtonList ID="rblGJS" runat="server" RepeatDirection="Horizontal">
  22. <asp:ListItem Value="1" >是</asp:ListItem>
  23. <asp:ListItem Value="0" Selected="True">否</asp:ListItem>
  24. </asp:RadioButtonList>
  25. </td>
  26. </tr>
  27. <tr id="gjsbh" hidden="hidden" >
  28. <td id="right" align="right" class="label_style">估价师编号:</td>
  29. <td id="left" align="left" class="content_style">
  30. <asp:TextBox ID="txtGJSBH" runat="server" CssClass="easyui-textbox" Height="90%" Width="280px"></asp:TextBox>
  31. </td>
  32. </tr>

以上这篇js判断radiobuttonlist的选中值显示/隐藏其它模块的实现方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持脚本之家。

人气教程排行