Posted in JQuery

Zebra_form checkbox manipulations

function evalAttributes () {

$(“#_YN_Y”).removeAttr(“disabled”);
$(“#_COMMENTONLY_Y”).removeAttr(“disabled”);

// ———————————————-

if ($(‘#_YN_Y’).prop(‘checked’)){

$(‘#_COMMENTONLY_Y’).prop(‘checked’, false);
$(“#_COMMENTONLY_Y”).attr(“disabled”, true);

}

// ———————————————-

if ($(‘#_COMMENTONLY_Y’).prop(‘checked’)){

$(‘#_YN_Y’).prop(‘checked’, false);
$(“#_YN_Y”).attr(“disabled”, true);

}

}