zoukankan      html  css  js  c++  java
  • checkbox 获取选中的值

    JS

    View Code
     <script type="text/javascript">
            var id;
            $('input').live('click',function(){ 
                id=$('input:checked').val(); 
            });
           function doRebut(){
                //var id=$("input checked").val();
                var url="rebutpage.aspx?id="+id+"&name=project";
                <%=dlgedit.ClientID%>.setSize("500","300");
                <%=dlgedit.ClientID%>.setTitle("项目驳回");
                <%=dlgedit.ClientID%>.show(url);
                
                return false;
                }
            function rebutConfirm() {
                var count = getSelectedCount(document.getElementById('form1'));
                if (count == 0) {
                    alert("请选择要驳回的数据!");
                    return false;
                }
                370324753
                if (count == 1) {
                    doRebut();
                    return false;
                }
                else {
                    alert("驳回数据只能是一条!");
                    return false;
                }
            }
    
             function closedialog(reload){
                <%=dlgedit.ClientID%>.hide();
                
                if(reload){
                    //window.location.href=window.location.href;
                    __doPostBack('btnsearch','');
                }
            }
        </script>

     <asp:Button ID="btnok" runat="server" Text="确  认" CssClass="button" Width="70px"
                                OnClientClick="return getCheckConfirm();" OnClick="btnok_Click1"/>
    <asp:Button ID="btncancel" runat="server" Text="驳  回" CssClass="button" Width="70px"
                                OnClientClick="return rebutConfirm();"  />

  • 相关阅读:
    Kernel panic
    elasticsearch5.4 安装篇
    nginx 切割日志文件
    dl 320e gen8 v2 安装2008 r2 系统
    idea开发配置
    红黑树
    二叉搜索树
    Object
    nginx
    docker
  • 原文地址:https://www.cnblogs.com/haoxr/p/3047351.html
Copyright © 2011-2022 走看看