$('#Domain_ID').focusout(function () {
$.ajax({
type: 'GET',
url: 'https://localhost:44364/api/v1/AdSearch?userId=rdanne1',
dataType: 'json',
error: function (xhr) {
alert("An error occured: " + xhr.status + " " + xhr.statusCode);
},
success: function (data) {
if (data) {
$('#Domain_ID').val(data.lanId);
$("#Name").val(data.name);
$("#Email").val(data.email);
}
}
});
});