ajax for post data code example
Example 1: make ajax request post jquery
$.ajax({
method: "POST",
url: "some.php",
data: { name: "John", location: "Boston" }
})
Example 2: js ajax post strings
$.ajax({
type: "POST",
url: url,
data: data,
success: success,
dataType: dataType
});