title: Get owner form from checkbox in jQuery
body: <p>Is there an easy way in jQuery to return the owner form for a deeply-nested checkbox (or input) element? Here's an example of what I mean:</p>
  
  <pre><code>&lt;form&gt;
      &lt;table&gt;
          &lt;thead&gt;
              &lt;tr&gt;
                  &lt;td&gt;123&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tfoot&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;input type="checkbox" class="checkall" /&gt;&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/tfoot&gt;
      &lt;/table&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Then I have the following jQuery code:</p>
  
  <pre><code>$('checkbox.checkall').each(function() { 
      // Access form element of the checkbox here
  });
  </code></pre>
  
  <p>In the above example, I would like to obtain the form to which the checkbox belongs. Natually, I could do this using a chained <code>parent()</code> method, but the checkbox might not always be the same nesting depth from the root form element.</p>
  
  <p>Sorry if it's not clear, but it's difficult to explain.</p>