title: Iterate thorugh table columns and get the fastest time
body: <p>I have a table which has times in order of three splits and the total time it takes.. here in this example <a href="http://jsfiddle.net/0x4a2jm3/" rel="nofollow">http://jsfiddle.net/0x4a2jm3/</a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#table {
    margin: 10px auto;
    font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
    font-size: 14px;
    width: 600px;
    table-layout: fixed;
    text-align: left;
    border-collapse: collapse;
  }
  #table th {
    font-size: 15px;
    font-weight: normal;
    background: #b9c9fe;
    border-top: 4px solid #aabcfe;
    border-bottom: 1px solid #fff;
    color: #039;
    padding: 8px;
  }
  #table td {
    background: #e8edff;
    border-bottom: 1px solid #fff;
    color: #669;
    border-top: 1px solid transparent;
    padding: 8px;</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;table id="table"&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th&gt;Lap&lt;/th&gt;
        &lt;th&gt;Split 1&lt;/th&gt;
        &lt;th&gt;Split 2&lt;/th&gt;
        &lt;th&gt;Split 3&lt;/th&gt;
        &lt;th&gt;Total Time&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;tr&gt;
        &lt;td&gt;1&lt;/td&gt;
        &lt;td&gt;0:30.900&lt;/td&gt;
        &lt;td&gt;0:51.000&lt;/td&gt;
        &lt;td&gt;0:32.000&lt;/td&gt;
        &lt;td&gt;(total time)&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td&gt;2&lt;/td&gt;
        &lt;td&gt;0:31.200&lt;/td&gt;
        &lt;td&gt;0:50.500&lt;/td&gt;
        &lt;td&gt;0:32.300&lt;/td&gt;
        &lt;td&gt;(total time)&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td&gt;3&lt;/td&gt;
        &lt;td&gt;0:30.600&lt;/td&gt;
        &lt;td&gt;0:50.900&lt;/td&gt;
        &lt;td&gt;0:32.200&lt;/td&gt;
        &lt;td&gt;(total time)&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>You can see in that table, what I want is to get the fastest time in those columns namely split 1, split 2 and split 3.. example the fastest split 1 time is <strong>0:30.600</strong> split 2 is <strong>0:50.500</strong> and split 3 is <strong>0:32.000</strong> then output it.</p>
  
  <p>js code</p>
  
  <pre><code>$('#table tr').each(function(){
  var sp1 = $(this).find('td:nth-child(2)').text()
  var sp2 = $(this).find('td:nth-child(3)').text()
  var sp3 = $(this).find('td:nth-child(4)').text()
  var1 = moment(sp1, "mm:ss.SSS") + moment(sp2, "mm:ss.SSS") + moment(sp3, "mm:ss.SSS")
  
  $(this).find('td:nth-child(5)').html(moment(var1).format("mm:ss.SSS"));
  });
  </code></pre>
  
  <p>so is it possible to do this?</p>