zoukankan      html  css  js  c++  java
  • RadioButtonList实现选择改变行的隐藏显示

    <tr>
       <td>
        传签流程选择:</td>
       <td>
        <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal"
         RepeatLayout="Flow">
         <asp:ListItem Value="0">默认流程</asp:ListItem>
         <asp:ListItem Value="1">自定义流程</asp:ListItem>
        </asp:RadioButtonList>
    </tr>
    <tr id="mytr" style="display: none;">
       <td>
        将应聘人员资料传签至:</td>
       <td>
       </td>
    </tr>
    龍童幽靈 11:32:46
    控件代码
    龍童幽靈 11:32:56
    <script type="text/javascript">
        function showtr(Value1)
        {
        if(Value1==1)
        {
            document.getElementById('mytr').style.display='block';
        }
        else
        {
        document.getElementById('mytr').style.display='none';
        }
        }
    </script>


    后台在Page_Load里的
    for (int i = 0; i < this.RadioButtonList1.Items.Count; i++)
         {
          this.RadioButtonList1.Items[i].Attributes.Add("onclick", "showtr(this.value)");
         }

  • 相关阅读:
    SPOJ 149 FSHEEP Fencing in the Sheep ( 计算几何 + 二分 )
    UVa 11806
    UVa 1445
    HDU 4725 The Shortest Path in Nya Graph( 建图 + 最短路 )
    HDU 4661 Message Passing ( 树DP + 推公式 )
    从远程库克隆库
    添加远程库
    远程仓库
    删除文件
    撤销修改
  • 原文地址:https://www.cnblogs.com/kaiwanlin/p/3645660.html
Copyright © 2011-2022 走看看