Checkboxes as berate a few?

Hello!

There are several checkboxes, and each has several sub-checkboxes ( check box 1, box 1.1 box 1.2 box 2.1 box 2, etc.)
It is necessary that when selecting the sub-checkbox ( 1.1 etc ) were chosen as the main parent of these sub-checkboxes.
How is it possible to write jquery?
Thanks in advance.
August 19th 19 at 22:58
1 answer
August 19th 19 at 23:00
Solution
I guess as a whole it should work something like this: https://jsfiddle.net/wc22oawo/1/ - Nikolas commented on August 19th 19 at 23:03
Thank you very much - Chyna commented on August 19th 19 at 23:06

Find more questions by tags JavaScriptjQuery