make a POST request jquery code example
Example 1: jquery ajax post
$.ajax({
type: "POST",
url: url,
data: data,
success: success,
dataType: dataType
});
Example 2: make ajax request post jquery
$.ajax({
method: "POST",
url: "some.php",
data: { name: "John", location: "Boston" }
})
Example 3: $.post javascript
//$.post with jQuery
$.post(
"path/to/your/php/file",
{
param1: "Value",
param2: "Value"
},
function(data) {
//Callback here
}
);