Monetary value collection

Monetary value collection

Hi,

I want to collect values in Turkey money format. For example 5.324.082,10. The codes below do not collect. How can i do?

Greetings,
Metin.

  1. document.addEventListener('DOMContentLoaded', function(e) {
  2. $("#prjProjeEkleOzKaynak, #prjProjeEkleDisKaynak").keyup(function() {
  3. var sayi1 = parseFloat($("#prjProjeEkleOzKaynak").val());
  4. var sayi2 = parseFloat($("#prjProjeEkleDisKaynak").val());
  5. var toplam = parseFloat(sayi1+sayi2);

  6. $("#prjProjeEkleToplam").attr("value",toplam);
  7. });
  8. });