20. Implement nested checkboxes
分享给更多人
- If the parent checkbox is checked, then all the children checkboxes will be checked.
- If the parent checkbox is unchecked, then all the children checkboxes are unchecked.
- If some of the children checkboxes are checked, then the parent check box will be in the indeterminate state