I have sample code like this:
Add to Car
Use jQuery ajax:
function AddToCart(id) { $.ajax({ url: 'urlToController', data: { id: id } }).done(function() { alert('Added'); }); }
http://api.jquery.com/jQuery.ajax/