Uncheck parent checkbox if one child is unchecked
问题 I am developing an application that requires the value of multiple checkboxes. I have nested lists containing checkboxes. The current functionality is this: When a parent is checked, all children are checked under it. When a child is checked, the parent is not selected. I need to add this functionality: When a child is unchecked after the parent is checked, the parent unchecks, but leaves the children checked. $('input[name="level-1"],input[name="level-2"]').bind('click', function () { $(