Jquery prevent multiple submit

后端 未结 7 861
花落未央
花落未央 2020-12-30 09:58

I want to prevent multiple submit if someone click on one of the submit buttons multiple times.

How can unbind or undelgate in this case th

7条回答
  •  鱼传尺愫
    2020-12-30 10:44

    when you click the button within the function add the attr(disabled) which will make the button inactive.

    $("form Button").attr("disabled","1"); 
    

    should prevent multiple submissions

提交回复
热议问题