I need re-organize price string first value is 1.778,81 i need last value 2.099,00 the code belove results like 2099,00 i need . before 6th character from last.
$.each($(".indirimsiz_urun_fiyati span"), function(index) {
var KDVsiz = $(this).html().replace(' TL + KDV', '');
var KDVsiz = (KDVsiz).replace(/\./g,"");
var KDVsiz = (KDVsiz).replace(/,/g,".");
var KDVsiz = (parseFloat(KDVsiz,10) * 1.18).toFixed(2);
var KDVsiz = (KDVsiz).replace(/\./g,",");
$(this).text( KDVsiz + ' TL' );
});