Disable the submit button after clicking and enable it back again after a few seconds

后端 未结 6 680
你的背包
你的背包 2020-12-31 00:47

I\'m using jquery $.post when submitting a form. I want to disable the button for like 5 seconds after it has been clicked to avoid multiple submission of the form.

6条回答
  •  渐次进展
    2020-12-31 01:14

    In extension of @Teneff answer if there is multiple submit button in the form and you want the name of button at server side.

    
    
                                     
                  
提交回复
热议问题