PHP JQuery Ajax insert not working

后端 未结 1 2007
逝去的感伤
逝去的感伤 2021-01-23 23:14

Normally works but when trying for ajax insert does not work.

Here is my form(no form action in html):

name: 

        
1条回答
  •  無奈伤痛
    2021-01-24 00:08

    You need to prevent default form submit:

    $('#submit').click(function(e){
       e.preventDefault()
       // do your ajax
    
    });
    

    0 讨论(0)
提交回复
热议问题