title: jQuery: Get First Column Value on Fourth Row (only) of HTML Table
body: <p>I have a table named resultGridTable. I have a jQuery function to be executed on each row of the table.   In the function, "this" means a row. </p>
  
  <ol>
  <li><p>For the fourth row, I need to alert the first column value (of fourth row). I have the following code; but it does not work. How can we make it working?</p></li>
  <li><p>For the fifth row, I need to alert the number of columns in the row. How can we do it?</p></li>
  <li><p>In the sixth row's second column, I have two buttons (input type="submit"). I need to alert the second button's text/value. (The second button has a class named "secondButton") How can we do it?</p></li>
  </ol>
  
  <p>Following is the code::</p>
  
  <pre><code>$('#resultGridTable tr').each(function (i) 
  {
      //"this" means row
      //Other operations in the row. Common for all rows
  
      if(i==3)
      {
          //Specific Operation for fourth row
          var columnValue = $(this 'td:nth-child(0)').val();
          alert(columnValue);
      }
  });
  </code></pre>
  
  <p>READINGS:</p>
  
  <ol>
  <li><p><a href="https://stackoverflow.com/questions/10798332/jquery-code-starting-from-parent-to-child-not-from-child-to-parent/10798404#10798404">jQuery Code: Starting from Parent to Child; not from Child to Parent</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/1815859/how-to-get-value-of-first-column-in-current-row-in-html-table-using-jquery">How to get value of first column in current row in html table using jQuery</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/3871709/how-to-get-the-first-rows-last-column-of-an-html-table-using-jquery">How to get the first row&#39;s last column of an Html table using jQuery</a></p></li>
  </ol>