I've encountered an issue with the code below, it seems to not be working properly. Can someone suggest a solution on how to extract data by ID from the response?
function loadStatus(uri,id)
{
waitingDialog.show('Loading', {dialogSize: 'sm'});
$.ajax({
method : "GET",
dataType : "text",
url : uri,
xhrFields : {
withCredentials : true
},
crossDomain : true,
contentType : "application/x-www-form-urlencoded;charset=UTF-8"
}).done(function(msg) {
waitingDialog.hide();
alert(msg);
// extracting value by id
var contractID= $msg.filter('#contractID').text();
// extracting value by id
var contractID=$(msg).find('#contractID').html();
alert(contractID);
});
return false;
}