I used js to do form verification, but the subsequent ajax submission did not respond.
Excuse me, what is the problem? Thank you
I used js to do form verification, but the subsequent ajax submission did not respond.
Excuse me, what is the problem? Thank you
This part of you
$(function(){ var my_data=new Array(); $.ajax({ url: "sql.php", type: "POST", data:{trans_data:right}, //dataType: "json", error: function(){ alert('Error loading XML document'); }, success: function(data,status){//如果调用php成功 alert('data'); } }); });
changed to
var my_data=new Array(); $.ajax({ url: "sql.php", type: "POST", data:{trans_data:right}, //dataType: "json", error: function(){ alert('Error loading XML document'); }, success: function(data,status){//如果调用php成功 alert('data'); } });