javascript parse float error
<p>I am trying to get sum of rows of my table:</p>

<blockquote>
  <p>td1 val = $5,000.00; td2 val = $3000.00;</p>
</blockquote>

<p>And I am using the following code:</p>

<pre><code>var totalnum = 0;
$('.num').each(function(){
  totalnum+= parseFloat($(this).html());
});
$('.total_num').html(totalnum);
</code></pre>

<p>This code works perfect if I remove money formatting from the number, otherwise it gives <code>NaN</code> as a result even if I am using <code>parseFloat</code>.</p>

<p>What am I missing?</p>
