//jQuery

<script type="text/javascript">
$("input:submit").each(function() {
var srcclick = $(this).attr("onclick");
if(typeof(srcclick)=="function"){
$(this).click(function() {
if (srcclick()) {
setdisabled(this);
return true;
}
return false;
});}
});
function setdisabled(obj) {
setTimeout(function() { obj.disabled = true; }, 100);
}
</script>

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

相关文章:

  • 2021-12-18
  • 2021-10-18
  • 2021-10-06
  • 2021-05-24
猜你喜欢
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
  • 2021-06-24
  • 2021-12-10
  • 2021-05-06
相关资源
相似解决方案