總結(jié)JavaScript的正則與其他語言的不同之處

字號:


    下面小編就為大家?guī)硪黄猨s判斷radiobuttonlist的選中值顯示/隱藏其它模塊的實現(xiàn)方法。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。
    js判斷radiobuttonlist的選中值顯示/隱藏其它模塊的實現(xiàn)方法:
    <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>是否估價師:</td>
    <td>
    <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">估價師編號:</td>
    <td id="left">
    <asp:TextBox ID="txtGJSBH" runat="server" CssClass="easyui-textbox" Height="90%" Width="280px"></asp:TextBox>
    </td>
    </tr>
    以上這篇js判斷radiobuttonlist的選中值顯示/隱藏其它模塊的實現(xiàn)方法就是小編分享給大家的全部內(nèi)容了,希望能給大家一個參考