$("#txtUserID").change(function () {
var url = "http://localhost:61200/api/Login/" + $("#txtUserID").val();
$.ajax({
dataType: "json",
url: url,
success: function (response) {
$("#ddlBranch").select2("val", response.BRANCH);
$("#txtUserName").val(response.USER_NAME);
console.log(response);
}
});
});
var url = "http://localhost:61200/api/Login/" + $("#txtUserID").val();
$.ajax({
dataType: "json",
url: url,
success: function (response) {
$("#ddlBranch").select2("val", response.BRANCH);
$("#txtUserName").val(response.USER_NAME);
console.log(response);
}
});
});