title: find parent div inside <td> with jQuery
body: <p>how can I find the parent id of the div inside the table?
  I have the following structure:</p>
  
  <pre><code>&lt;div id="parent"&gt;
  &lt;table&gt;
  &lt;tbody&gt;
    &lt;tr&gt;                                             
     &lt;td&gt;                                     
       &lt;div id="child" &gt;      
   &lt;/div&gt;
     &lt;/td&gt;                    
   &lt;/tr&gt;        
  &lt;/tbody&gt;
  &lt;/table&gt;
  &lt;/div&gt; 
  
  
  &lt;script type="text/javascript"&gt;  
  $(document).ready(function() 
  {               
     var parent = $("#child").parent().attr("id");
     alert(parent);
  });   
  </code></pre>
  
  <p>   </p>
  
  <p>When the div is inside &lt; td> parent is empty. When I move the div outside &lt; td> it works fine. Can you help me how to find the div inside ?</p>
  
  <p>thanks </p>