I am facing issues while using getScript()
function, here is my script
$.getScript("script.js").done(function(script, textStatus,jqxhr) {
console.log(jqxhr.status);
})
.fail(function(jqxhr, settings, exception ) {
console.log(jqxhr.status);
});
But i am getting the following error in the console..
Uncaught TypeError: Cannot read property 'done' of undefined, can you please suggest the solution. Actually i am using the getScript() function to check whether the server is up/down.