function start(value){ $.ajax({ url:'url', method:'POST', data:{ key : value } }).done(function(response){ alert(response); }); }