Resetting Checkboxes
-
Hi,
I’m currently having an issue with unchecking checkboxes with some jQuery using the following code:
jQuery(document).on(‘click’, ‘[id*=”fieldname197_”]’, function(){
jQuery(‘[class*=”discount-33″]’).prop(“disabled”, false);
jQuery(‘[class*=”discount-50″]’).prop(“disabled”, true);
jQuery(‘[class*=”discount-33″]:checked’).prop(“checked”, false);
jQuery(‘[class*=”discount-50″]:checked’).prop(“checked”, false);
})When I click on the button (fieldname197) it does untick the relevant checkboxes (which have a single option/value) but the value is still being called in a calculated field. When I manually untick the checkbox the value does not apply.
Thanks!
The topic ‘Resetting Checkboxes’ is closed to new replies.