How to remove comma from number which comes dynamically in .tpl file August 4, 2023 by Tarik var a="1,125"; a=a.replace(/\,/g,''); // 1125, but a string, so convert it to number a=parseInt(a,10); Hope it helps.