title: Create when parent checked child too checked?
body: <p>I have problem parent child checkbox when I checked parent child not checked</p>
  
  <p>Here is my code</p>
  
  <pre><code>&lt;ul id="treeview"&gt;
                              @foreach ($parent_menus as $parent_menu)
                                  &lt;li&gt;
                                      {{ $parent_menu-&gt;Description }}
                                      &lt;input type="checkbox" class="pc-box" name="menus_id[]" value="{{ $parent_menu-&gt;ModuleID }}"&gt;
                                      &lt;ul class="example"&gt;
                                          @foreach ($child_menus1 as $child_menu1)
                                              @if ($parent_menu-&gt;ModuleID == $child_menu1-&gt;HeaderId)
                                                  &lt;li data-expanded="true"&gt;
                                                      {{ $child_menu1-&gt;Description }}
                                                      &lt;input type="checkbox" class="cc-box" name="menus_id[]" value="{{ $child_menu1-&gt;ModuleID }}"&gt;
                                                      &lt;ul&gt;
                                                          @foreach ($child_menus2 as $child_menu2)
                                                              @if ($child_menu1-&gt;ModuleID == $child_menu2-&gt;HeaderId)
                                                                  &lt;li&gt;
                                                                      {{ $child_menu2-&gt;Description }}
                                                                      &lt;input type="checkbox" class="cc-box" name="menus_id[]" value="{{ $child_menu2-&gt;ModuleID }}"&gt;
                                                                  &lt;/li&gt;
                                                              @endif
                                                          @endforeach
                                                      &lt;/ul&gt;
                                                  &lt;/li&gt;
                                              @endif
                                          @endforeach
                                      &lt;/ul&gt;
                                  &lt;/li&gt;
                              @endforeach
                          &lt;/ul&gt;
  </code></pre>
  
  <p>Here is my Script jquery</p>
  
  <pre><code> $(".cc-box").click(function () {
          if (!this.checked)
              $(this).closest("ul").prev().fadeIn().find(".pc-box").prop("checked", false);
      });
  </code></pre>
  
  <p>When I checked checkbox from class pcbox the checkbox from cc-box not work / not checked.</p>
  
  <p>Where is the problem?</p>