Ajax request using POST method

function update_partial_payment(id)
{
$.ajax({
type: ‘POST’,
url: api_url+’tb_package/update_partial_payment/’,
data: {package_id:id},
success: function() {
location.reload();
}
});
}

 

Advertisements