Here is the code:
$.ajaxSetup({async:false}); $.post(\'/save/\', {a : \'1\'}, function(res){ $(\'#random\').html(res); }, \'text\' ).error(function(j