value show in Is Cancelled = true but checkbox is not check . Can any one tell how to get write code when true then checkbox checked if false then unchecked. This code is not working .
function POGetby(PO_ID) {
$.ajax({
url: "/Home/POMain_Select",
type: "GET",
contentType: "application/json;charset=UTF-8",
data: { 'PO_ID': PO_ID },
dataType: "json",
success: function (result) {
if (!$("#IsUCancelled").is(":checked")) {
$('#IsUCancelled').val(result.IsCancelled);
}
$('#UpdateModel').modal('show');
$('#UpdatePO').show();
},
error: function (errormessage) {
alert(errormessage.responseText);
}
});
return false;
}