Hi nedash,
The reason is simple, disabled inputs values aren't submitted to the server due to web-browsers submission limitation policy.
The W3 spec says that input tags that are disabled are considered invalid and should not be submitted.
Instead, use the readonly attribute:
<input type="text" readonly />
nedash says:
$(
'input[type=checkbox][id*=Chad]'
).on(
'ifChecked'
, function (
event
) {
$(
"#Txtmatn"
).removeAttr(
"disabled"
);
$(
"#Txtmatn"
).focus();
});
$(
'input[type=checkbox][id*=Chad]'
).on(
'ifUnchecked'
, function (
event
) {
$(
"#Txtmatn"
).attr(
"disabled"
,
"disabled"
);
});
replace above code with below
// if checked.
$('input[type=checkbox][id*=Chad]').on('ifChecked', function (event) {
$("#Txtmatn").removeAttr("disabled");
$("#Txtmatn").removeAttr('readonly');
$("#Txtmatn").focus();
});
// if uncheckd.
$('input[type=checkbox][id*=Chad]').on('ifUnchecked', function (event) {
$("#Txtmatn").attr('readonly', 'readonly');
});
and if you dont want to use ReadOnly Property then you need to make use of Ajax Call like below
$('[id*=YourSavingButtonId]').click(function () {
alert($("#Txtmatn").val());
//your ajax call comes here.
return false;
});
for more details on Ajax Calling refer below article