ajax - Prevent double click on submit

前端 未结 2 594
不知归路
不知归路 2020-12-20 14:51

How can I prevent the user from double clicking submit button on my signup form which is an ajax partial view?

I regret to ask since this would have

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-20 15:30

    UPDATE: submission was not working because onclick was not returning true

    this will disable the button and the second click on the button won't work

提交回复
热议问题