title: Jquery selecting closest checkbox inbox not working
body: <p>I have a <code>treelist</code> containing multiple levels of <code>checkboxes</code> and I am trying to get the parent <code>checkbox</code> to show as <code>'checked'</code> when any of children <code>checkboxes</code> are clicked.  For some reason this is not working and it's killing me.</p>
  
  <p><strong>JAVASCRIPT</strong></p>
  
  <pre><code>$(function() {
          $("input.boundChild[type=checkbox]").click(function() {              
              $(this).closest("input.boundParent").prop("checked", "checked");
          });
   });
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;ul&gt;
     &lt;li class="collapsed expanded"&gt;
         &lt;input id="0" class="boundParent" type="checkbox" &gt;
          Australia
               &lt;ul style="display: block;"&gt;
                 &lt;li&gt;
                    &lt;input id="0/" class="boundChild" type="checkbox" checked=""&gt;
                    &lt;input type="hidden" value="Intel Australia PTY Ltd."&gt;
                 &lt;/li&gt;
               &lt;/ul&gt;
     &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>