I have a very basic problem related to ajax jquery , need some guidance
$.ajax({
type:"get",
url:"www.google.com",
success: function(html) {
alert("success");
},
error : function(request,status,error) {
alert(status);} //edited
});
I am getting status as "error" , error variable as "". I am not sure whats the problem . Check even with Verb "POST".
Edit : There was a typo in typing here. The syntax seems to be correct , even then the same error.
Here is the jsfiddle: https://jsfiddle.net/1988/z7nnf0fh/