insert query with ajax without reloading whole page

后端 未结 2 1578
遇见更好的自我
遇见更好的自我 2021-01-24 04:51

I want to insert data through AJAX (without reload page). I tried but it is not showing data and also reload page.

I have a file first.php (in which, fo

2条回答
  •  既然无缘
    2021-01-24 05:26

    After $("#submit").click(function(event){ add command

    event.preventDefault();
    

    And your page will not be reloaded

提交回复
热议问题