首页 > 防止表单多次提交

防止表单多次提交

防止表单多次提交

//jQuery







  function disableOtherSubmit()

    {

        $("input:submit").each(function(i) {

        setTimeout(function() { $("input:submit").eq(i).attr("disabled","true"); }, 100); });

    }

//ASP.NET

  Button_All.Attributes.Add("onclick", "this.disabled=true;" + this.ClientScript.GetPostBackEventReference(Button_All, ""));

            Button_CurrentCount.Attributes.Add("onclick", "this.disabled=true;" + this.ClientScript.GetPostBackEventReference(Button_CurrentCount, ""));

            Button_Between.Attributes.Add("onclick", "this.disabled=true;" + this.ClientScript.GetPostBackEventReference(Button_Between, ""));

posted on 2010-08-23 14:25 吊炸天的阿旺 阅读(...) 评论(...) 编辑 收藏

转载于:https://www.cnblogs.com/iamnumone/archive/2010/08/23/1806416.html

更多相关: