Hello,
I have a page that contains 2 checkboxes (CheckboxA, CheckboxB). CheckboxB has a rule that says it is required.
$('#initalPageForm').jqxValidator({
rules: [
{ input: '#CheckboxB', message: 'You must contact your instructor', action: 'change', rule: 'required', position: 'right:0,0'},
The behavior I want is that when checkboxA is checked, that checkboxB is not shown and is not required. I have the part working to not show checkboxB:
$("#checkboxA").bind('checked', function (event) {
$("#checkboxB").jqxCheckBox({ disabled: true });
$("#checkboxB").css("display", "none");
});
My question is, how do I change the rule for checkboxB to NOT require it when checkboxA is checked?
Thank you,
Todd