Selecting a text input from a table located in a specific row
<p>I have table like this-</p>

<pre><code>&lt;table class='table'&gt;
  &lt;tr&gt;
   &lt;td class="td"&gt;&lt;input type="text" name="name&lt;%=f.getId()%&gt;" value="&lt;%=f.getName()%&gt;"/&gt;      
   &lt;/td&gt;
   &lt;td class="td"&gt;&lt;input type="text" id="field_length" size="3" name="length&lt;%=f.getId()%&gt;" value="&lt;%=f.getLength()%&gt;"/&gt;&lt;/td&gt;
   &lt;td class="td"&gt;&lt;input type="text" name="tooltip&lt;%=f.getId()%&gt;" value="&lt;%=f.getToolTip()%&gt;"/&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   same like the previous.......
  &lt;/tr&gt;
  &lt;tr&gt;
    same like previous....
  &lt;/tr&gt;
</code></pre>

<p>Now I want to change the value in the text box located in the second row with the id "field_length". I tried to use jquery to do that. </p>

<pre><code>$(‘tr:nth-child(2) input:text#field_length’).val(10);
</code></pre>

<p>But this is not working. Can any body please provide me a little help regarding this.</p>
