title: getting NaN error when getting data from a table column
body: <p>I am getting a NaN error when I run this code. I have a cell in a table that I am getting the data from. </p>
  
  <p>I am trying to add up the values in a column. Right now the table has two rows, the first row has 28.55 and the second row has 30.00. </p>
  
  <p>When the first alert shows its 28.55, when the second shows it 30.0. When the third alert shows the sum is NaN. How do I make the conversion so it can sum correctly? Thanks in advance.</p>
  
  <pre><code>function changeBalance() {
  
  var sum = 0;
  
  $("td.pmt").each(function() {
  payment = $(this);
  alert(payment.html());
  
  sum += parseFloat(payment.val());
  
  
  });      
  alert(sum);
  document.getElementById("total").innerHTML = sum;   
  
  }
  </code></pre>