时间:2021-07-01 10:21:17 帮助过:8人阅读
js判断radiobuttonlist的选中值显示/隐藏其它模块的实现方法
- <script>
- $(function () {
- var SelectVal = $("input[name='rblGJS']:checked").val();
- if (SelectVal == 1) {
- $("#gjsbh").show();
- }
- $("#<%=rblGJS.ClientID %>").change(function () {
- SelectVal = $("input[name='rblGJS']:checked").val();
- if (SelectVal == 1) {
- $("#gjsbh").show();
- }
- else {
- $("#gjsbh").hide();
- }
- });
- })
- </script>
- <tr>
- <td align="right" class="label_style">是否估价师:</td>
- <td align="left" class="content_style">
- <asp:RadioButtonList ID="rblGJS" runat="server" RepeatDirection="Horizontal">
- <asp:ListItem Value="1" >是</asp:ListItem>
- <asp:ListItem Value="0" Selected="True">否</asp:ListItem>
- </asp:RadioButtonList>
- </td>
- </tr>
- <tr id="gjsbh" hidden="hidden" >
- <td id="right" align="right" class="label_style">估价师编号:</td>
- <td id="left" align="left" class="content_style">
- <asp:TextBox ID="txtGJSBH" runat="server" CssClass="easyui-textbox" Height="90%" Width="280px"></asp:TextBox>
- </td>
- </tr>
以上这篇js判断radiobuttonlist的选中值显示/隐藏其它模块的实现方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持脚本之家。