Submit action getting hit twice while using JQuery UI Dialog

后端 未结 3 677
花落未央
花落未央 2021-01-15 08:01

I am writing an ASP.NET MVC 4 application using JQuery and bootstrap.

There is a modal dialog functionality in my site which used to work smoothly until recently whe

3条回答
  •  天涯浪人
    2021-01-15 08:43

    You change you input type="submit" to input type="button"

    Here you are submitting your form twice, one by default behavior of form and another from script

提交回复
热议问题