I want to override the $ .ajax function in jQuery
I want to use existing functionality and add some other features
Example:
get the original ajax function in the OriginalAjax variable
var OriginalAjax = $.ajax $.ajax = function(xhr){ if(xhr.status ==401) {
Is it possible to override the $ .ajax function? if yes Please advise how to implement it?
source share