How do I add STOP Multiple Form Submit with JQuery Validation

前端 未结 4 1286
小鲜肉
小鲜肉 2020-12-20 10:12

I would like to stop disable submit button once validation is completed and form is submitting so I will not have multiple inserts to DB. I have not updated post with full f

4条回答
  •  余生分开走
    2020-12-20 11:03

    i had the same problem and i came with a simple solution. from javascript i am sending a flag in cookie for every time submit is clicked, then checking the cookie on the server side, if the cookie is a valid one then performing the respective action other wise redirecting the control to the user.

    Note : i m a java developer so i m not uploading the code, but i think this can also be achieved in .net, php and other languages.

提交回复
热议问题