Calculate two numbers in jQuery
<p>i have problem calculate 2 numbers has comma in jquery or javascript</p>

<p>i take the first and second number from div "attr"</p>

<p>this is my example code</p>

<pre><code>var firstnumber = $('.first_price').attr('price'); //its 5,000
var secondnumber = $('.second_price').attr('price'); //its 6,000

$('#total').html( Math.floor(firstnumber+secondnumber) );

//also tried
$('#total').html( Number(firstnumber+secondnumber) );
</code></pre>

<p>its return 0 , but when i remove the comma from the price its retruen 11000 
how to make it return 11,000 i mean i need it to calculate the two numbers if they has comma any help ?</p>
