Submit a php form and display its result on div without reloading page

前端 未结 5 482
北恋
北恋 2021-02-04 22:25

First of all, thank you for your kind help.

I have tried almost everything I found on stackoverflow but I cannot get this to work.

I created a form to send a te

5条回答
  •  旧巷少年郎
    2021-02-04 23:01

    Your appendTo in success callback is backward. In your example, you are trying to append the .result element to the response variable. Should be:

    success: function(response){ response.appendTo(".result")}

提交回复
热议问题