jquery ajax post each code example
Example 1: jquery ajax $.post with data
$.post('http://example.com/form.php', {category:'client', type:'premium'}, function(response){
alert("success");
$("#mypar").html(response.amount);
});
Example 2: js ajax post strings
$.ajax({
type: "POST",
url: url,
data: data,
success: success,
dataType: dataType
});