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)");
         }

  • 相关阅读:
    漫游Kafka介绍章节简介
    poj 2309 BST 使用树阵lowbit
    华为-on练习--小写字符数的统计显示
    OpenMp高速分拣
    eclipse 于 Tomcat于 热部署 project
    2015第49周二
    2015第49周一
    2015第48周六
    2015第48周五
    2015第48周四
  • 原文地址:https://www.cnblogs.com/kaiwanlin/p/3645660.html
Copyright © 2011-2022 走看看