var price = $(\'#addprice\').val(); var pass = $(\'#pass\').val(); var total = $(\'#totalprice\').attr(\'value\') var left = $(\'#leftquota\').attr
you can use parseFloat for this case. it will return float value
example of usage:
var tprice = parseFloat(total) + parseFloat(price);