How to prevent a double-click using jQuery?

前端 未结 15 848
孤街浪徒
孤街浪徒 2020-11-30 23:42

I have a button as such:


Within jQuery I am using the following, but it still

15条回答
  •  余生分开走
    2020-12-01 00:19

    You can do something like this to disable submit button when loading a new page with the same form:

    $("#btnConfirm").bind("click", function (e) {
      $("#btnConfirm ").css("pointer-events", "none");
    });
    

    The submit button could look like this:

    
    

提交回复
热议问题