Exmaple has Parent node with a checkbox and "x" child nodes.
When selecting the parent node all children are selected.
After executing code to uncheck all checkboxes:
$('input.checkbox-strategy:checkbox').prop('checked', false);
$('input.checkbox:checkbox').prop('checked', false);
After the code above executes when clicking on the Parent the children checkboxes are not checked. After unchecking and rechecking the Parent then the child nodes are selected as expected.
Is there a better way to "uncheck" the checkboxes so it behaves as expected?
thanks.
When selecting the parent node all children are selected.
After executing code to uncheck all checkboxes:
$('input.checkbox-strategy:checkbox').prop('checked', false);
$('input.checkbox:checkbox').prop('checked', false);
After the code above executes when clicking on the Parent the children checkboxes are not checked. After unchecking and rechecking the Parent then the child nodes are selected as expected.
Is there a better way to "uncheck" the checkboxes so it behaves as expected?
thanks.