title: get cell value from a dynamic HTML table according to the contents of the first line
body: <p>I have a table in html that its order of columns can change. The code of this table is:</p>
  
  <pre><code>&lt;table id="table"&gt;
          &lt;tr&gt;
              &lt;td&gt;ID&lt;/td&gt;
              &lt;td&gt;Place&lt;/td&gt;
              &lt;td&gt;Population&lt;/td&gt;
  
          &lt;/tr&gt;
  
          &lt;tr&gt;
              &lt;td&gt;1&lt;/td&gt;
              &lt;td&gt;Phoenix city&lt;/td&gt;
              &lt;td&gt;1445632&lt;/td&gt;
  
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;2&lt;/td&gt;
              &lt;td&gt;San Antonio city&lt;/td&gt;
              &lt;td&gt;1327407&lt;/td&gt;
  
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;3&lt;/td&gt;
              &lt;td&gt;San Diego city&lt;/td&gt;
              &lt;td&gt;1307402&lt;/td&gt;
  
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;4&lt;/td&gt;
              &lt;td&gt;Dallas city&lt;/td&gt;
              &lt;td&gt;1197816&lt;/td&gt;
  
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;5&lt;/td&gt;
              &lt;td&gt;San Jose city&lt;/td&gt;
              &lt;td&gt;945942&lt;/td&gt;
  
          &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I need to get the value that has the id equal to 2 column that has the first line says "Place". The jquery code I'm using to try to do this it is:</p>
  
  <pre><code>//Convert Object
      var table = $('#table');
      //get cell
      var valuefinal = $(table).find("tr").eq(2).find("td").text("Place");
      //display value
      alert(valuefinal);
  </code></pre>
  
  <p>Is it possible to do this? I believe it is very complex to do this</p>
  
  <p><a href="http://jsfiddle.net/JoaoFelipePego/SdBBy/311/" rel="nofollow">JSFiddle</a> </p>