Error formatting text() using formatCurrency()
<p>i have the following code where i convert values from TD's in a grid to ints, then add them together and output back to the currentSalary cell...but when i try to format it i get a NaN error. If i do not format...it works, but i need to make it look like a dollar amount </p>

<pre><code>$('.dollarchange').change(function() {
             var currentSalary = parseInt($('.currentSalary').text(), 10);
             var dollarchange = parseInt($('.dollarchange').val(), 10);
             var total = (currentSalary + dollarchange);
             $('.currentSalary').text(total);
         });
         $('.currentSalary').formatCurrency();
</code></pre>
