title: Getting textbox values inside table using jQuery
body: <p>Html Table</p>
  
  <pre><code>&lt;table id="tb"&gt;
  &lt;tr&gt;
    &lt;th&gt;First Name&lt;/th&gt;
    &lt;th&gt;Last Name &lt;/th&gt;
    &lt;th&gt;Coutry&lt;/th&gt;
  &lt;/tr&gt;
  
  &lt;tr&gt;
    &lt;td&gt;&lt;input type="text" id="FName"/&gt; &lt;/td&gt;
    &lt;td&gt;&lt;input type="text" id="LName"/&gt; &lt;/td&gt;
     &lt;td&gt;&lt;input type="text" id="Country"/&gt; &lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;tr&gt;
    &lt;td&gt;&lt;input type="text" id="FName"/&gt; &lt;/td&gt;
    &lt;td&gt;&lt;input type="text" id="LName"/&gt; &lt;/td&gt;
     &lt;td&gt;&lt;input type="text" id="Country"/&gt; &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Jquery</p>
  
  <pre><code>//Here I am looping through all the rows in table
  $('#tb tr').each(function(i, row) {
    //Here I need to loop the tr again ( i.e. row) 
    $(row, "input").each(function(i, sr) {
      //here  I want to get all the textbox values
      alert($(sr).eq(0).val());
      alert($(sr).eq(1).val());
      alert($(sr).eq(2).val());
    });
  });
  </code></pre>
  
  <p>But I am getting undefined values.</p>
  
  <p>I want to get all the values from text boxes which are inside the table.</p>
  
  <p>Please help me resolve the issue.</p>