How to Ajax POST after a Form Submit

后端 未结 2 1199
被撕碎了的回忆
被撕碎了的回忆 2021-01-25 07:40

I think this is pretty simple but I cannot find anywhere how to do this, as the title says, how do you do an ajax post after a successful submit form post. I tried to search for

2条回答
  •  感动是毒
    2021-01-25 08:36

    i'm not sure what you are trying to do, what the point of doing ajax request after submitting the form the page will reload anyway.

    however if need need do the ajax request after the submitting the form you just need an ajax call. but that that will work on every time when page load.

    what i think you need to do make two ajax request the first one is for the submitting the form and if the call is successful then call the second request.

提交回复
热议问题