title: jQuery - How to select last column of all rows in a table?
body: <p>Assuming I have a HTML table as follows (with the appropriate tr, td tags):</p>
  
  <pre><code>a1 | b1 | c1
  a2 | b2 | c2
  a3 | b3 | c3
  a4 | b4 | c4
  
  &lt;table border="1"&gt;
  &lt;tr&gt;
      &lt;td&gt;a1&lt;/td&gt;
      &lt;td&gt;b1&lt;/td&gt;
      &lt;td&gt;c1&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;a2&lt;/td&gt;
      &lt;td&gt;b2&lt;/td&gt;
      &lt;td&gt;c2&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;a3&lt;/td&gt;
      &lt;td&gt;b3&lt;/td&gt;
      &lt;td&gt;c3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;a4&lt;/td&gt;
      &lt;td&gt;b4&lt;/td&gt;
      &lt;td&gt;c4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I'm trying to select all the c* rows to perform an action on them. </p>
  
  <p>Using the <code>$('td:last')</code> selector just selects the last td tag, i.e., c4. </p>
  
  <p>I tried <code>$('tr &gt; td:last')</code> which didn't work. What would be the correct selector in this case?</p>