title: jQuery - How many cells in a row
body: <p>Is there a way in jQuery to tell how many cells are in a selected row?  For example, I am iterating through the rows via:</p>
  
  <pre><code>$("#statsId &gt; table tbody tr").each ( function() {
      var secondCol = $(this).find('td:nth-child(2)').html();
      var thirdCol= $(this).find('td:nth-child(3)').text();
  </code></pre>
  
  <p>and want to retrieve the second and third cell values.  However when I do this iteration the cell values are coming back null when I know they are not.  I thought if there was a way to verify the number of cells/columns in the selected row, I could at least verify that there are three cells in the selector.  Or perhaps my selector for "secondCol" and "thirdCol" is wrong.  Any help is appreciated.</p>