jQuery submit form without reloading page

前端 未结 3 1278
情歌与酒
情歌与酒 2020-12-06 11:52

I\'m not very familiar with jQuery. I\'m trying to make a form that is submitted in the background without reloading page.

I have a hidden div which shows and hides

3条回答
  •  执笔经年
    2020-12-06 12:09

    Please check which jQuery version you are using because in after jQuery 1.8.2 "success" function from jQuery Ajax is deprecated.

    Use e.preventDefault() to prevent actual submit event.

提交回复
热议问题