I have a function where if the user clicks on the pagination links of a dynatable (page numbers, Previous, Next) that it will disable a couple of the fields from updates based on a certain status. here is the function call:
$(document).on('click', '.dynatable-page-link', function()
{
var statusCheck = $('#UpdCMDStatus').val();
alert ("Enter the function on dynatable page link") ;
if (statusCheck === "CP" || statusCheck === "VP")
{
$('table#checkedTable input[type=checkbox]').attr('disabled','true');
$('table#checkedTable input[type=text]').attr('disabled','true');
$('table#checkedTable select[id^=Modify]').attr('disabled','true');
}
else
{
$('table#checkedTable input[type=checkbox]').removeAttr("disabled");
}
});
I know that the processing is working when I load the page because it is disabled the 3 fields. I know from looking at the alert box that I am accessing the function at the right time. But it doesn't look like the input or select boxes are being disabled when just clicking. I tried to do a debug on document.getElementById("checkedTable").rows[1].cells[1] (a check box field) and attributes were showing disabled = false. Guess what is confusing why it working on the page load but not in a function tied to pagination.
Thanks again.