I have a jqGrid it has a checkbox in the rows. I need to be able to change the value depending of if it is being checked or unchecked. Using this in the $(document).ready block does not work. I have tried multiple solutions that I have found on the forum and nothing seems to work. Any suggestions?
$('#glReportCodesGrid').children("input:checkbox").click(function () {
var y = $(this).val();
if (y == 'false') {
$(this).val('true');
}
else { $(this).val('false'); }
});