To get a value of a TD using JQuery
<p>I got a very simple Table with only two rows. <br/>
I was thinking what is the best way to get the value from the TD with ID "row2".<br/></p>

<pre><code>&lt;Table id="testing&gt;
&lt;tr&gt;
&lt;th&gt;
&lt;/th&gt;
&lt;td id="row1"&gt;hello&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th&gt;
&lt;/th&gt;
&lt;td id="row2"&gt;world&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>Here is my attempt:<br/></p>

<pre><code>$(document).ready(function(){ 
      var r=$("#testing":row2).val();
      alert(r);
});
</code></pre>

<p>But I couldn't see any message pop up.
What shall I do in the JQuery code if I want to specify the Table ID along with the TD ID?<br/></p>

<pre><code> var r=$("#testing":row2).text();
 var r=$("#testing").children("row2").text();
</code></pre>
