title: Finding the first div inside a td
body: <p>I'm pointing at the first div inside my table's td as you can see in the jQuery code below.</p>
  
  <pre><code>$('table tr td div').css("position", "relative"); 
  </code></pre>
  
  <p>But I've got some problems with that so I've tried this:</p>
  
  <pre><code>$('table tr td').parents('div:first').css({position:'relative'});
  </code></pre>
  
  <p>But this one doesn't work fine either. What is wrong with my code?</p>
  
  <p>My HTML structure is:</p>
  
  <pre><code>&lt;table&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;!-- all id for the div and image inside the td are dynamic --&gt;
              &lt;div&gt;&lt;!-- Need to access this div --&gt;
                  &lt;!-- content ---&gt;
              &lt;/div&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>