$.ajax method ,


$.ajax({
  type: 'POST', // post , get
  url: "file.php",
  data: {name: "Rajeev", time: "2pm"},
  success: function(result,status,xhr){
   alert(result); alert(status); alert(xhr);
  },
  error: function(xhr,status,error){ alert(status);
  }
 
  });

Comments

Popular posts from this blog

Call PHP Function In JavaScript Using Ajax

List of Post Category Wise in wordpress