title: How to select first td element and its text with Jquery
body: <p>I want to change the "Yes! Pick me" into "Picked" with Jquery in the following HTML structure, I used <code>$('#myDiv&gt;table&gt;tr&gt;td&gt;table&gt;tr').eq(1).text("Picked");</code> But it was not working. Could someone shed some light on this please? Thanks!</p>
  
  <p>FYI, the first td of the the first table itself contains another table...</p>
  
  <pre><code> &lt;div id="myDiv"&gt;
      &lt;table&gt;
        &lt;tr&gt;
          &lt;td&gt;
            &lt;table&gt;
              &lt;tr&gt;
                &lt;td&gt;Yes! Pick me!&lt;/td&gt;
  
                &lt;td&gt;Not me..&lt;/td&gt;
              &lt;/tr&gt;
  
              &lt;tr&gt;
                &lt;td&gt;Not me..&lt;/td&gt;
              &lt;/tr&gt;
            &lt;/table&gt;
          &lt;/td&gt;
  
          &lt;td&gt;Not me..&lt;/td&gt;
        &lt;/tr&gt;
  
        &lt;tr&gt;
          &lt;td&gt;Not me..&lt;/td&gt;
        &lt;/tr&gt;
      &lt;/table&gt;
    &lt;/div&gt;
  </code></pre>
  
  <hr>
  
  <p>The section <code>$('#myDiv&gt;table&gt;tr&gt;td&gt;table&gt;tr&gt;td').eq(1).text("Picked");</code> does the trick, I forgot the last td part. Thanks to Rocket and everyone's help.</p>