title: JQuery adding the values of a column given a column name
body: <p>Let's say I have a table : </p>
  
  <pre><code>    &lt;table id="myTable"&gt;
      &lt;thead&gt;
      &lt;th&gt; Col1 &lt;/th&gt;
      &lt;th&gt; Col2 &lt;/th&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
         &lt;tr&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;
         &lt;tr&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;
      &lt;/tbody&gt;
      &lt;/table&gt;
  </code></pre>
  
  <p>And I want to add the values in column named <strong>Col2</strong>, which is 4. I don't want to add the values by the position of the column, which is <a href="http://naspinski.net/post/Use-jQuery-to-add-all-the-values-in-a-table-column_.aspx" rel="nofollow">answered here</a>, since the position of the column is variable.</p>