i have problem calculate 2 numbers has comma in jquery or javascript
i take the first and second number from div "attr"
this is my example 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) );
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 ?