$.post javascript 1

$.post javascript

//$.post with jQuery

$.post(
  "path/to/your/php/file", 
  {
    param1: "Value",
    param2: "Value"
},
  function(data) {
  //Callback here
  }
);

Here is what the above code is Doing:
1. The first parameter is the URL to which the request is sent.
2. The second parameter is the data to be sent to the server.
3. The third parameter is the callback function that is executed if the request succeeds.

Similar Posts