ajax jquery 1.1 fail code example Example: jquery ajax on fail fail: function(xhr, textStatus, errorThrown){ alert('request failed'); }