title: How to get a table cell value using jQuery
body: <p>I am trying to get the td values using jQuery for a table I have no control over. There is an excellent example posted on this site, but it references one column not multiple ones within each tr.</p>
  
  <p>I also don't have an id for the table or rows...  only a <code>class=columndata</code> for the td.</p>
  
  <pre><code>$('#mytable tr').each(function() {
      var customerId = $(this).find("td").eq(2).html();    
  }
  </code></pre>
  
  <p>will get the single td of a fixed tr?</p>
  
  <p>Here is my table data:</p>
  
  <pre><code>&lt;tr valign="top"&gt;
      &lt;td class="columnaction" valign="center"&gt;
          &lt;img src="../images/spacer.gif" width="1" height="1" /&gt;
          &lt;a href="javascript:void(0);" class="columnactionlink" onclick="return doAccept('599577', '1', '','');" alt="Accept"&gt;Accept&lt;/a&gt;
      &lt;/td&gt;
      &lt;td class="columndata"&gt;Message&lt;/td&gt;
      &lt;td class="columndata"&gt;Test&lt;/td&gt;
      &lt;td class="columndata"&gt;&lt;/td&gt;
      &lt;td class="columndata"&gt;&lt;/td&gt;
      &lt;td class="columndata"&gt;04/09/2011 23:59&lt;/td&gt;
      &lt;td class="columndata"&gt;04/09/2011&lt;/td&gt;
      &lt;td class="columndata"&gt;05/12/2011 07:00&lt;/td&gt;
      &lt;td class="columndata"&gt;05/13/2011 07:00&lt;/td&gt;
      &lt;td class="columndata"&gt;&lt;/td&gt;
      &lt;td class="columndata"&gt;Doe, Jeffrey A. (xx)&lt;/td&gt;
      &lt;td class="columndata"&gt;913014405580&lt;/td&gt;
      &lt;td class="columndata"&gt;Skip&lt;/td&gt;
      &lt;td class="columndata"&gt;04/09/2011 16:37&lt;/td&gt;
      &lt;td class="columndata"&gt;C&lt;/td&gt;
      &lt;td class="columndata"&gt;Doe,J&lt;/td&gt;
      &lt;td class="columndata"&gt;04/09/2011 16:37&lt;/td&gt;
      &lt;td class="columndata"&gt;04/09/2011 23:59&lt;/td&gt;
      &lt;td class="columndata"&gt;04/09/2011 16:34&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>Here is the reference to a similar question:
  <a href="https://stackoverflow.com/questions/376081/how-to-get-a-table-cell-value-using-jquery">How to get a table cell value using jQuery?</a></p>