$.ajax({
type: "POST",
url: "d.php",
//data: data,
//dataType: "JSON",
success: function(){
alert("success");
}
});
Passing id as post
$.ajax({
type: "POST",
url: "d.php",
data: {id:id},
//dataType: "JSON",
success: function(msg){
alert(msg);
}
});
type: "POST",
url: "d.php",
//data: data,
//dataType: "JSON",
success: function(){
alert("success");
}
});
Passing id as post
$.ajax({
type: "POST",
url: "d.php",
data: {id:id},
//dataType: "JSON",
success: function(msg){
alert(msg);
}
});
No comments:
Post a Comment