formatar dinheiro javascript vírgulas
function formatMoney(n) {
return "$ " + (Math.round(n * 100) / 100).toLocaleString();
}
n = 2123000;
// =>2,123,000
Zidane (Vi Ly - VietNam)