I want to get the data response from my login webservice. Here is my web service http://41.128.183.109:9090/api/Data/getloginer?medid=a&pass=a (for testing). Here is my code:
$("#login").click(function () {
var url = "http://41.128.183.109:9090/api/Data/getloginer?medid=a&pass=a";
$.ajax({
url: url,
type: 'Get',
success: function (data) {
alert(data.Medical_id);
},
});
});
The alert()
shows me undefined
. Please advise on what the problem could be.