I have a file with the name foo.htm inside a folder abc. I am invoking the below script from another html page known as query.html in the folder abc.
$.ajax({
url: '/foo.htm',
method: 'GET',
complete: function(a,b){
alert('complete-2');
},
success: function(a){
alert('good-2');
},
error: function(a,b){
alert('problem-2');
},
});
However, I am getting the message complete-2 and problem-2. It doesn't show the message good-2. What could be
the problem?.
Your help is kindly appreciated.