ecxamples on data in jquery ajax post method code example
Example: make ajax request post jquery
$.ajax({
method: "POST",
url: "some.php",
data: { name: "John", location: "Boston" }
})
$.ajax({
method: "POST",
url: "some.php",
data: { name: "John", location: "Boston" }
})