jquery ajax $.post with data

JavaScript
$.post('http://example.com/form.php', {category:'client', type:'premium'}, function(response){ 
      alert("success");
      $("#mypar").html(response.amount);
});
Source

Also in JavaScript: