views:

60

answers:

1

I need to display a currency within a jTemplate.

{parseInt($T.product.Details[0].Price).toFixed(2)} displays as 34.50, but i should be displayed with a comma like 34,50.

I tried several functions to replace the point with a comma, but no luck so far. Anyone who can point me in the right direction?

Mark

+1  A: 
{parseInt($T.product.Details[0].Price).toFixed(2).replace('.',',')}
PetersenDidIt
Time to get some sleep :D works perfect! Thanks.
Mark